-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add style guide for IDE's #1386
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1386 +/- ##
===========================================
Coverage 68.007% 68.007%
Complexity 8352 8352
===========================================
Files 570 570
Lines 33848 33848
Branches 5661 5661
===========================================
Hits 23019 23019
Misses 8645 8645
Partials 2184 2184 |
Given that we are not aware of maintainers who use eclipse, perhaps we only need the IntelliJ version? |
@yfarjoun updated to remove eclipse formatter |
@lindenb I am too late for this ? I use eclipse : I think it would be good for people writing PR |
Someone can make a call 😃 I can undo the last commit and put back the eclipse style guide. My personal opinion is its better to support more IDE options, as long as they are compatible with each other. |
as long as everything is compatible with current guidelines, and we have active folks that use the style_guide, I think it would be good to have them....thanks @lindenb for chiming in! |
All right, so I'll put the Eclipse style formatter back in per the above comment. |
8eeeb00
to
1f535d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitochon I've been resistant to requiring an auto linted style guide, but I think committing a suggested one that generally matches how we format things is a good idea. 👍
Description
I recently submitted my first PR to this project. I find that the code style is heterogenous which sometimes distracts me from working.
I am used to having an IDE format things but I realize this may not work for everybody. I see some discussion already in #1196 about enforcing certain styles.
My proposal is the following:
I'm relying on inertia, with the assumption that people won't reformat files that's already reformatted, and new changes will mostly be in-line with the proposed format.
Hopefully in the long run the style will converge, but initially there may be a lot of PR's with a lot of formatting changes when people start using their IDE to reformat stuff.
Side note: I asked about this earlier in the gitter channel and @cmnbroad suggested to try (see logs on May 21 and May 22)
Checklist
References
Diff between proposed version and Google's version (TLDR; increase indent from 2 -> 4)
eclipse formatter
intellij formatter