Skip to content

chore: fix 3 Lint RuboCop cops - #2750

Merged
mroderick merged 7 commits into
masterfrom
fix-lint-cops
Jul 28, 2026
Merged

chore: fix 3 Lint RuboCop cops#2750
mroderick merged 7 commits into
masterfrom
fix-lint-cops

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

What

Fixes 3 Lint cops via autocorrect, one commit per rule, then regenerates .rubocop_todo.yml.

Cops fixed

Cop Offenses Autocorrect
Lint/AmbiguousBlockAssociation 5 safe
Lint/UnusedBlockArgument 8 safe
Lint/UselessAssignment 9 safe

25 offenses fixed. 22 files changed.

Remaining Lint cops (not autocorrectable)

  • Lint/AssignmentInCondition — 2 offenses. Uses safe-assignment-in-condition () pattern with AllowSafeAssignment: false. Needs manual refactor to avoid assignment in conditions.
  • Lint/UselessTimes — 2 files remaining (event_spec.rb, workshop_spec.rb). 1.times.map/1.times.collect patterns don't autocorrect. Needs manual replacement with direct array literals.

Todo dropped from 894 → 867 remaining.

@mroderick
mroderick marked this pull request as ready for review July 28, 2026 16:07
@mroderick
mroderick merged commit ecac830 into master Jul 28, 2026
9 checks passed
@mroderick
mroderick deleted the fix-lint-cops branch July 28, 2026 16:07
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

Successfully merging this pull request may close these issues.

1 participant