Skip to content
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

Merged
merged 1 commit into from
Feb 24, 2015
Merged

TrailingComma got strict_comma #1621

merged 1 commit into from
Feb 24, 2015

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Feb 2, 2015

Any element with a line break in its declaration is now considered to
be multiline, which results in more consistent behaviour for this cop.

@tamird
Copy link
Contributor Author

tamird commented Feb 6, 2015

@bbatsov this is green now

@bbatsov
Copy link
Collaborator

bbatsov commented Feb 6, 2015

I've been pretty busy at work lately. I'll try to review the PR over the weekend.

@tamird
Copy link
Contributor Author

tamird commented Feb 23, 2015

@bbatsov ping

@@ -511,6 +511,7 @@ Style/TrailingComma:
EnforcedStyleForMultiline: no_comma
SupportedStyles:
- comma
- strict_comma
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about consistent_comma?

@bbatsov
Copy link
Collaborator

bbatsov commented Feb 23, 2015

Overall the code looks good to me. Any feedback from anyone else?

@tamird
Copy link
Contributor Author

tamird commented Feb 23, 2015

@bbatsov addressed your comments

@bbatsov
Copy link
Collaborator

bbatsov commented Feb 24, 2015

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.
@tamird
Copy link
Contributor Author

tamird commented Feb 24, 2015

@bbatsov fixed

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 99.65% when pulling 6c3c6a1 on tamird:trailing-commas-consistency into 2e463b0 on bbatsov:master.

bbatsov added a commit that referenced this pull request Feb 24, 2015
`TrailingComma` got `consistent_comma`
@bbatsov bbatsov merged commit e107dc4 into rubocop:master Feb 24, 2015
@bbatsov
Copy link
Collaborator

bbatsov commented Feb 24, 2015

👍 Thanks!

@tamird tamird deleted the trailing-commas-consistency branch February 24, 2015 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants