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
The following:
# in lib/rubocop/ast/node_pattern.rb def compile_arg(token) case token when WILDCARD then name = token[1..-1] access_unify(name) || fail_due_to('invalid in arglist: ' + token) when LITERAL then token # ...
does not generate an offense (it should). I realized that as I refactored it as:
def compile_arg(token) name = token[1..-1] case token when WILDCARD then access_unify(name) || fail_due_to('invalid in arglist: ' + token) when LITERAL then token # ...
which generates an offense (correct):
lib/rubocop/ast/node_pattern.rb:656:26: C: [Corrected] Style/MultilineWhenThen: Do not use then for multiline when statement. when WILDCARD then ^^^^
The text was updated successfully, but these errors were encountered:
[Fix rubocop#8158] Fix Style/MultilineWhenThen to better handle mul…
Style/MultilineWhenThen
54ec33f
…tiline body
[Fix #8158] Fix Style/MultilineWhenThen to better handle multiline …
7836c61
…body
Successfully merging a pull request may close this issue.
The following:
does not generate an offense (it should). I realized that as I refactored it as:
which generates an offense (correct):
The text was updated successfully, but these errors were encountered: