-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix Error: The Style/TrailingCommaInLiteral
cop no longer exists
#27
Conversation
…y default in newer versions of Rubocop 2. Fix Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead. (obsolete configuration found in ../ruby/2.5.0/lib/ruby/gems/2.5.0/gems/fix-db-schema-conflicts-3.0.2/.rubocop_schema.49.yml, please update it)
This will break all Rubocops where |
@jakeonrails Is this repository/project still maintained? |
@Tolsto I'm not sure about rebasing and overriding the original yml file. My concern is that it will break compatibility with rubocop versions older than 0.49.0 for this gem. Again, the changes in this PR are spread over 3 different released versions of rubocop, so adding separate versioned
However, as removal of Also, not sure what/how @jakeonrails plans on managing these issues in future? |
Rubocop is a fast moving project and |
I don't think that this gem should run rubocop. I run rubocop in my project if I want. Reading tests I supposed that rubocop will run only to ensure test passing. (Spec has a here document with an example of schema.rb, so running rubocop on schema.rb could ensure than the expected file and the generate file are identical) |
We should probably close this since there are 2 open PRs that address the same issue but in a way that won't break |
Add to your .rubocop.yml AllCops: |
Disable Encoding and FrozenStringLiteralComment as it is enabled by default in newer versions of Rubocop
Fix Error: The
Style/TrailingCommaInLiteral
cop no longer exists. Please useStyle/TrailingCommaInArrayLiteral
and/orStyle/TrailingCommaInHashLiteral
instead.(obsolete configuration found in ../ruby/2.5.0/lib/ruby/gems/2.5.0/gems/fix-db-schema-conflicts-3.0.2/.rubocop_schema.49.yml, please update it)