Sdlc/Structural/PrimitiveObsessedIvar cop crashes on map/node.rb #448

Closed
opened 2026-08-20 15:30:31 +00:00 by jared · 1 comment
Owner

Context

Running rubocop over plugins/os-sdlc/lib/os_sdlc/runner/map/node.rb emits internal cop-crash warnings ("An error occurred while Sdlc/Structural/PrimitiveObsessedIvar cop was inspecting...") rather than a clean pass or a real offense. The crash predates and is independent of #439's work.

What to do

Reproduce with rubocop -d from plugins/os-sdlc, find the cop bug in lib/os_sdlc/cops/primitive_obsessed_ivar.rb, fix it, and add a regression test under tests/cops/.

## Context Running rubocop over plugins/os-sdlc/lib/os_sdlc/runner/map/node.rb emits internal cop-crash warnings ("An error occurred while Sdlc/Structural/PrimitiveObsessedIvar cop was inspecting...") rather than a clean pass or a real offense. The crash predates and is independent of #439's work. ## What to do Reproduce with `rubocop -d` from plugins/os-sdlc, find the cop bug in lib/os_sdlc/cops/primitive_obsessed_ivar.rb, fix it, and add a regression test under tests/cops/.
Author
Owner

Resolution

Done: Crash claim not reproducible against current code; closing as resolved by other means

Evidence: code-probe agent a9d3ffe6708e27c2f (claude-sonnet-5): ran rubocop against node.rb alone, against lib/os_sdlc/runner/ (42 files), and against all of lib/ (160 files) with rubocop 1.89.0 -- no crash, no cop-internal warning in any run. node.rb and primitive_obsessed_ivar.rb unchanged since before the ticket was filed. A regression test for this cop already exists at tests/cops/primitive_obsessed_ivar_test.rb.

Follow-ups: none

## Resolution **Done:** Crash claim not reproducible against current code; closing as resolved by other means **Evidence:** code-probe agent a9d3ffe6708e27c2f (claude-sonnet-5): ran rubocop against node.rb alone, against lib/os_sdlc/runner/ (42 files), and against all of lib/ (160 files) with rubocop 1.89.0 -- no crash, no cop-internal warning in any run. node.rb and primitive_obsessed_ivar.rb unchanged since before the ticket was filed. A regression test for this cop already exists at tests/cops/primitive_obsessed_ivar_test.rb. **Follow-ups:** none
jared closed this issue 2026-08-23 12:27:19 +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#448
No description provided.