Skip to content

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

@lu-x

Description

@lu-x

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions