Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Don't add trailing spaces in generate-style-code.js #7886

Closed
wants to merge 2 commits into from

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Jan 27, 2017

Our indent function adds trailing spaces for multi line strings when generating the code. Follow up to #7875

@kkaefer kkaefer requested a review from 1ec5 January 27, 2017 12:19
@kkaefer kkaefer force-pushed the 7886-dont-generate-trailing-spaces branch from b83b1b9 to ccf3c92 Compare January 27, 2017 15:58
@1ec5
Copy link
Contributor

1ec5 commented Jan 27, 2017

I actually disagreed with #7875. In my opinion, enforcing a code style that differs from Xcode's default only increases friction for new contributors with no material gain. The "no trailing spaces" rule is now the only code style rule we enforce for the iOS and macOS SDKs, which seems a bit strange. A good compromise would have been to enforce the rule only for non-blank lines, or only in components where we actually care.

@kkaefer
Copy link
Contributor Author

kkaefer commented Feb 6, 2017

Superseded by #7372

@kkaefer kkaefer closed this Feb 6, 2017
@kkaefer kkaefer deleted the 7886-dont-generate-trailing-spaces branch February 6, 2017 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants