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

False positives for TrailingComma cop, %w() arrays #785

Closed
mockdeep opened this issue Feb 2, 2014 · 1 comment
Closed

False positives for TrailingComma cop, %w() arrays #785

mockdeep opened this issue Feb 2, 2014 · 1 comment

Comments

@mockdeep
Copy link
Contributor

mockdeep commented Feb 2, 2014

When I have the following configuration:

TrailingComma:
  EnforcedStyleForMultiline: comma

I get false positives on multiline %w() arrays:

ingredients = %w(
  sausage
  anchovies
  olives
)
bbatsov added a commit that referenced this issue Feb 2, 2014
[Fix #785] Fix false positive on %w arrays in TrailingComma
@mockdeep
Copy link
Contributor Author

mockdeep commented Feb 2, 2014

Quick fix. Thanks!

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

No branches or pull requests

1 participant