-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
TrailingComma
got strict_comma
#1621
Conversation
@bbatsov this is green now |
I've been pretty busy at work lately. I'll try to review the PR over the weekend. |
@bbatsov ping |
@@ -511,6 +511,7 @@ Style/TrailingComma: | |||
EnforcedStyleForMultiline: no_comma | |||
SupportedStyles: | |||
- comma | |||
- strict_comma |
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.
This will have to be explained in the preceding comment. I'm also not sure about this name.
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.
how about consistent_comma
?
Overall the code looks good to me. Any feedback from anyone else? |
@bbatsov addressed your comments |
You forgot to update the commit message. |
Any element with a line break in its declaration is now considered to be multiline, which results in more consistent behaviour for this cop.
@bbatsov fixed |
`TrailingComma` got `consistent_comma`
👍 Thanks! |
Any element with a line break in its declaration is now considered to
be multiline, which results in more consistent behaviour for this cop.