os-sdlc lint gate ignores target lint_config and lints only code_path with root .rubocop.yml #215
Labels
No labels
P0
P1
P2
P3
bug
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#215
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Surfaced running ticket #209 through /os-sdlc:implement. The
lintgate (bin/os-sdlc lint_command -> OsSdlc::Lint) has two gaps:Lint#resolve_config_pathprefers<root>/.rubocop.ymlwhen it exists and falls back to<code_path>/.rubocop.yml— it never consultsproject.lint_config. In cc-os the root .rubocop.yml is justAllCops: NewCops: disable, so the gate ran stock cops and reported 530 offenses across 53 lib files, none related to the ticket. Settinglint_config: plugins/os-sdlc/.rubocop.ymlon the target changed nothing.code_path, not the ticket's delta — any pre-existing offense blocks every unrelated ticket (and a bin/-only change isn't linted at all when code_path is lib/).Proposed fix
Honor
project.lint_configfirst in resolve_config_path (root/code_path fallbacks after), and consider delta-scoping the gate to the run's changed files (the worktree diff is available to the caller). Add tests for both in plugins/os-sdlc/tests/lint_test.rb.Queued for the os-sdlc pipeline next session. Fix sketch: (1) reverse OsSdlc::Lint#resolve_config_path priority — honor project.lint_config first, root .rubocop.yml as fallback; (2) delta-scope the gate to the ticket's changed files instead of all of code_path. Tests: plugins/os-sdlc/tests/lint_test.rb.
Confirmed fixed: lint.rb:33 Lint#call now takes lint_config: and threads it through LintWorklistRubocopConfig (shipped as ticket #235, see tests/lint_test.rb:77-80). Closing.