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
Lint/RedundantCopEnableDirective bad autocorrection #8372
Labels
Comments
marcandre
added
bug
good first issue
Easy task, suitable for newcomers to the project
help wanted
labels
Jul 20, 2020
Again today on |
marcandre
changed the title
Lint/RedundantCopDisableDirective bad autocorrection
Lint/RedundantCopEnableDirective bad autocorrection
Aug 5, 2020
Also: |
8 tasks
8 tasks
dvandersluis
added a commit
to dvandersluis/rubocop
that referenced
this issue
Sep 22, 2020
…ion not removing empty `# rubocop:enable` comments. Added `RuboCop::DirectiveComment` to encapsulate some logic about determining whether a rubocop directive comment should be removed (if the cops in it are all redundant).
dvandersluis
added a commit
to dvandersluis/rubocop
that referenced
this issue
Sep 22, 2020
…tion removing a preceding newline incorrectly. There were no tests previously for autocorrection, so this change also adds tests to ensure whitespace is managed correctly.
bbatsov
added a commit
that referenced
this issue
Sep 23, 2020
… removing empty `# rubocop:enable` comments. (#8745) Added `RuboCop::DirectiveComment` to encapsulate some logic about determining whether a rubocop directive comment should be removed (if the cops in it are all redundant). Co-authored-by: Bozhidar Batsov <bozhidar@batsov.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I removed one line of code that changed the complexity of a method enough that the disabling was no longer necessary.
Autocorrection left me with an empty
# rubocop enable
:Actual original code
The text was updated successfully, but these errors were encountered: