Add TargetRubyVersion to root .rubocop.yml #379

Closed
opened 2026-08-14 20:10:55 +00:00 by jared · 2 comments
Owner

Parent

#368

What to build

Root .rubocop.yml lacks TargetRubyVersion, so rubocop falls back to its Ruby 2.7 parser and misparses modern syntax (endless methods etc.) in real source files as Lint/Syntax errors — 11 remaining offenses in plugins/os-adr/lib/adr/{migration_report,record,repository}.rb and tests/trim_status_table_test.rb. Set TargetRubyVersion (per-plugin configs use 3.4) at root and confirm the 11 offenses clear.

Acceptance criteria

  • TargetRubyVersion set in root .rubocop.yml
  • Lint/Syntax offense count drops to 0

Blocked by

  • None — can start immediately.
## Parent #368 ## What to build Root .rubocop.yml lacks TargetRubyVersion, so rubocop falls back to its Ruby 2.7 parser and misparses modern syntax (endless methods etc.) in real source files as Lint/Syntax errors — 11 remaining offenses in plugins/os-adr/lib/adr/{migration_report,record,repository}.rb and tests/trim_status_table_test.rb. Set TargetRubyVersion (per-plugin configs use 3.4) at root and confirm the 11 offenses clear. ## Acceptance criteria - [ ] TargetRubyVersion set in root .rubocop.yml - [ ] Lint/Syntax offense count drops to 0 ## Blocked by - None — can start immediately.
Author
Owner

Starting: add TargetRubyVersion to root .rubocop.yml

Starting: add TargetRubyVersion to root .rubocop.yml
Author
Owner

Resolution

Done: Set TargetRubyVersion: 3.4 under AllCops in root .rubocop.yml

Evidence: Commit bcc18c4; Lint/Syntax 11 -> 0; the 11 files now parse under Ruby 3.4

Follow-ups: Newly parseable files expose ~574 additional offenses; folded into #384 autocorrect scope

## Resolution **Done:** Set TargetRubyVersion: 3.4 under AllCops in root .rubocop.yml **Evidence:** Commit bcc18c4; Lint/Syntax 11 -> 0; the 11 files now parse under Ruby 3.4 **Follow-ups:** Newly parseable files expose ~574 additional offenses; folded into #384 autocorrect scope
jared closed this issue 2026-08-14 20:30:26 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#379
No description provided.