Skip to content
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

Wrong detection of "RuboCop: Lint/UnusedBlockArgument" #177

Open
lu-x opened this issue Apr 22, 2024 · 0 comments
Open

Wrong detection of "RuboCop: Lint/UnusedBlockArgument" #177

lu-x opened this issue Apr 22, 2024 · 0 comments

Comments

@lu-x
Copy link

lu-x commented Apr 22, 2024

Affected version: 0.27.0

Example:

  - [[1, 2], [2, 3]].each do |first, second|
    = first
    div title=second

Expected:
no linting offence

Actual outcome:
RuboCop: Lint/UnusedBlockArgument: Unused block argument - `second`. If it's necessary, use `_` or `_second` as an argument name to indicate that it won't be used.

@lu-x lu-x changed the title Wrong detection of "Lint/UnusedBlockArgument" Wrong detection of "RuboCop: Lint/UnusedBlockArgument" Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant