Lint#resolve_config_path has the same missing-.rubocop.yml failure shape fixed in AutocorrectPrepass (#229) #235

Closed
opened 2026-08-02 15:02:04 +00:00 by jared · 2 comments
Owner

plugins/os-sdlc/lib/os_sdlc/lint.rb resolve_config_path points rubocop at a possibly-missing .rubocop.yml, same shape as the pre-#229 AutocorrectPrepass bug. Consider routing it through the LintWorklistRubocopConfig merged chain (ADR-0082). Also worth an end-to-end CLI fixture for autocorrect against a project with no .rubocop.yml anywhere.

plugins/os-sdlc/lib/os_sdlc/lint.rb resolve_config_path points rubocop at a possibly-missing .rubocop.yml, same shape as the pre-#229 AutocorrectPrepass bug. Consider routing it through the LintWorklistRubocopConfig merged chain (ADR-0082). Also worth an end-to-end CLI fixture for autocorrect against a project with no .rubocop.yml anywhere.
Author
Owner

Fourth rediscovery, 2026-08-02, during #236 pipeline run: os-sdlc lint 236 --target os-sdlc reported 710 offenses / 78 files (near-stock cops) while rubocop --config plugins/os-sdlc/.rubocop.yml plugins/os-sdlc/lib on the same files reports 0. Cause confirmed: lint_command never passes project.lint_config; Lint#call has no param for it; resolve_config_path prefers root .rubocop.yml. grep confirms lint_config is read nowhere outside project.rb. Incident class also covers #196/#215/#229; fix direction: single config authority (extend LintWorklistRubocopConfig, fold lint_config into chain) + ADR.

Fourth rediscovery, 2026-08-02, during #236 pipeline run: `os-sdlc lint 236 --target os-sdlc` reported 710 offenses / 78 files (near-stock cops) while `rubocop --config plugins/os-sdlc/.rubocop.yml plugins/os-sdlc/lib` on the same files reports 0. Cause confirmed: lint_command never passes project.lint_config; Lint#call has no param for it; resolve_config_path prefers root .rubocop.yml. grep confirms lint_config is read nowhere outside project.rb. Incident class also covers #196/#215/#229; fix direction: single config authority (extend LintWorklistRubocopConfig, fold lint_config into chain) + ADR.
Author
Owner

Fixed and merged to main (26a7a49). Lint routes through LintWorklistRubocopConfig; Project#resolved_lint_config is the single resolver; custom lint_config wins outright, missing explicit config fails loud. Reviewer (opus) APPROVE. Post-merge verification: lint gate now 0 offenses on the same 78 files that showed 710. ADR-0091 records the decision.

Fixed and merged to main (26a7a49). Lint routes through LintWorklistRubocopConfig; Project#resolved_lint_config is the single resolver; custom lint_config wins outright, missing explicit config fails loud. Reviewer (opus) APPROVE. Post-merge verification: lint gate now 0 offenses on the same 78 files that showed 710. ADR-0091 records the decision.
jared closed this issue 2026-08-03 12:42:35 +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#235
No description provided.