os-sdlc: RunNumber#initialize trips Sdlc/FormatValidationRaisingInInitialize #95

Closed
opened 2026-07-22 20:54:33 +00:00 by jared · 1 comment
Owner

Report-only finding from the batch-3 lint validation scan (branch stepper/1-workspace, commit e0f6139): the new cop Sdlc/FormatValidationRaisingInInitialize fires at plugins/os-sdlc/lib/os_sdlc/run_workspace.rb:130 — RunNumber#initialize validates @run_id.match?(RUN_ID) and raises inside the conditional branch. Per ticket #94's disclosed scoping, the guard-clause shape (return if valid, then unconditional raise) deliberately passes the rule; reshaping RunNumber#initialize that way clears the offense. Left unfixed during cop implementation (validation C is report-only). Provenance: mine-lints session 2026-07-22.

Report-only finding from the batch-3 lint validation scan (branch stepper/1-workspace, commit e0f6139): the new cop Sdlc/FormatValidationRaisingInInitialize fires at plugins/os-sdlc/lib/os_sdlc/run_workspace.rb:130 — RunNumber#initialize validates @run_id.match?(RUN_ID) and raises inside the conditional branch. Per ticket #94's disclosed scoping, the guard-clause shape (return if valid, then unconditional raise) deliberately passes the rule; reshaping RunNumber#initialize that way clears the offense. Left unfixed during cop implementation (validation C is report-only). Provenance: mine-lints session 2026-07-22.
Author
Owner

plugins/os-sdlc/lib/os_sdlc/run_workspace.rb no longer exists (lib tree moved to Zeitwerk, os-sdlc.md 2026-08-02 row). rubocop --only Sdlc/Structural/FormatValidationRaisingInInitialize lib now reports 0 offenses repo-wide. Closing.

plugins/os-sdlc/lib/os_sdlc/run_workspace.rb no longer exists (lib tree moved to Zeitwerk, os-sdlc.md 2026-08-02 row). rubocop --only Sdlc/Structural/FormatValidationRaisingInInitialize lib now reports 0 offenses repo-wide. Closing.
jared 2026-08-13 18:14:45 +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#95
No description provided.