-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[new rule] VerticalWhitespace rule #747
Conversation
Current coverage is 89.49% (diff: 89.90%)@@ master #747 diff @@
==========================================
Files 74 75 +1
Lines 2480 2589 +109
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 2219 2317 +98
- Misses 261 272 +11
Partials 0 0
|
I'm not a fan of the naming. Seems a bit too complex for something that is practically a 'single_newlines' or just a 'newlines' rule perhaps. Not sure if my name her is any good but vertical spacing is pretty confusing imho. |
Same here. I had to read to code to get an idea what this rule is for. |
@freak4pc Yeah, I am not in love with the name either but I didn't want to conflict with I really didn't find a consensus between these so I picked What about : |
'newline_spacing' that perhaps could expect min and max but default to 1,1? Or 'single_newlines' also seems fitting imo. Thoughts on naming @jpsim ? |
I am going to rename it to |
Thanks for your work on this @masters3d and your feedback @freak4pc! I have two small suggestions: I think this should be named I don't think
is actually |
I changed back the name. I'd like to add |
"struct AAAA {}\n\n\n\n", | ||
"class BBBB {}\n\n\n", | ||
] | ||
, |
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.
comma should go on previous line
@masters3d I have some comments.
Fine by me. |
Thanks for driving this forward @masters3d! |
closes #548
@brentleyjones @Noobish1