We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Auto correction with rubocop -a, removes such comment line completely:
rubocop -a
# not very long comment # rubocop:disable Layout/LineLength
Only # rubocop:disable Layout/LineLength part must be deleted
# rubocop:disable Layout/LineLength
$ [bundle exec] rubocop -V 1.14.0 (using Parser 3.0.1.1, rubocop-ast 1.5.0, running on ruby 2.7.2 x86_64-linux) - rubocop-performance 1.11.3 - rubocop-rails 2.10.1
The text was updated successfully, but these errors were encountered:
[Fix rubocop#9822] Fix a false range for `Lint/RedundantCopDisableDir…
da9c0fc
…ective` Fixes rubocop#9822. This PR fixes a false directive comment range for `Lint/RedundantCopDisableDirective`.
Lint/RedundantCopDisableDirective
[Fix #9822] Fix a false range for Lint/RedundantCopDisableDirective
7551234
Fixes #9822. This PR fixes a false directive comment range for `Lint/RedundantCopDisableDirective`.
Successfully merging a pull request may close this issue.
Auto correction with
rubocop -a
, removes such comment line completely:# not very long comment # rubocop:disable Layout/LineLength
Expected behavior
Only
# rubocop:disable Layout/LineLength
part must be deletedRuboCop version
The text was updated successfully, but these errors were encountered: