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
code:
['asdasdasda', 123, :simon, 13] .map do |part| part * 2 rescue StandardError "can't be multiplied" end .tap { |res| puts res }
.rubocop
Style/FrozenStringLiteralComment: Enabled: false Style/MultilineBlockChain: Enabled: false
I expect rubocop to not to complain about my script.
rubocop's output
Offenses: scripts/console.rb:4:3: C: [Correctable] Layout/RescueEnsureAlignment: rescue at 4, 2 is not aligned with ['asdasdasda', 123, :simon, 13] .map do at 1, 0. rescue StandardError ^^^^^^ 1 file inspected, 1 offense detected, 1 offense auto-correctable
and the proposes autofix
$ bundle exec rubocop -V 1.18.4 (using Parser 3.0.2.0, rubocop-ast 1.8.0, running on ruby 3.0.2 x86_64-darwin20) $ gem list "rubocop-*" *** LOCAL GEMS *** rubocop (1.18.4) rubocop-ast (1.8.0)
Anyway, thanks for a very handy tool.
The text was updated successfully, but these errors were encountered:
Layout/RescueEnsureAlignment
[Fix rubocop#9973] Fix a false positive for `Layout/RescueEnsureAlign…
15886e3
…ment` Fixes rubocop#9973. This PR fixes a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` keyword and leading dot.
[Fix #9973] Fix a false positive for Layout/RescueEnsureAlignment
2fd1221
Fixes #9973. This PR fixes a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` keyword and leading dot.
Successfully merging a pull request may close this issue.
code:
.rubocop
Expected behavior
I expect rubocop to not to complain about my script.
Actual behavior
rubocop's output
and the proposes autofix
Anyway, thanks for a very handy tool.
The text was updated successfully, but these errors were encountered: