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
Rubocop 0.80.0 outputs warnings about newly introduced cops #7731
Comments
Also this broke |
That's a feature. :-) As many users were complaining that when new cops were introduced this caused CI failures and extra code fixing work, we decided to just list the new cops that were added and leave it to the users to enable/disable them. Note that those are not warnings - just informative messages. |
But I don't think broken |
I was referring to the description of the issue.
I think that'd be best. I'm sorry to hear the change caused a breakage, but I've never used the tool, so I'm not sure what this integration looks like. We're always willing to help 3rd party tools that want to leverage RuboCop. |
@bbatsov Ok, thanks. Created an issue at overcommit - sds/overcommit#704 |
Hi @bbatsov , thanks for the clarification! So every new cop will have "Enabled: pending" and we should decide if we want them or not in our own |
Yes. RuboCop will update the pending status to enabled/disable only for major releases (similar to what ESLint does). We'll likely cut RuboCop 1.0 is the next couple of months. |
Rubocop will not enable new "default" cops until major releases now. rubocop/rubocop#7731
@bbatsov is there any command line options to enable by default the newly introduced cops? Use case:
|
When providing a configuration file to Rubocop 0.80.0, I see three warnings related to
Does not happen with RuboCop 0.79.0
I'm testing the current master branch
Expected behavior
Do not see warnings
Actual behavior
Steps to reproduce the problem
RuboCop version
0.80.0 (using Parser 2.7.0.2, running on ruby 2.7.0 x86_64-darwin19)
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: