Retire custom_lint_config? sentinel string-compare in LintWorklistRubocopConfig #238
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#238
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
LintWorklistRubocopConfig#custom_lint_config?(plugins/os-sdlc/lib/os_sdlc/lint_worklist_rubocop_config.rb:48-50) still checks whether the config it was given equals the default sentinel string".rubocop.yml"(Project::DEFAULT_LINT_CONFIG):Since #235 / ADR-0091, that check can never matter in real use. Every production caller now goes through
Project#resolved_lint_config, which already translates the sentinel: it returnsnilfor the default and an absolute path otherwise. Verified call sites:RubocopReportFetcher(rubocop_report_fetcher.rb:12) — passes nothing (nil).AutocorrectPrepass(autocorrect_prepass.rb:81) — passesresolved_lint_config.Lintvia the CLI (lint.rb:50,bin/os-sdlc:544) — passesresolved_lint_config.The only thing keeping the sentinel comparison alive is one unit test that constructs the object directly with the sentinel string:
test_missing_default_lint_config_path_does_not_raise_and_uses_plugin_only_chain(tests/lint_worklist_rubocop_config_test.rb:37-39, construction at line 61).Dead code like this misleads readers into thinking the class still handles the sentinel, when ADR-0091 deliberately moved that responsibility to
Project#resolved_lint_configalone.Solution
lint_config: nil(the equivalent post-ADR-0091 input) so it still covers the "no custom config, plugin-only chain" behavior.@lint_config != Project::DEFAULT_LINT_CONFIGclause, leaving:Project::DEFAULT_LINT_CONFIG, decoupling it fromProject.See ADR-0091 for the decision that made this branch dead.
Work started in-session (triage session, 2026-08-03).
Fixed and verified. custom_lint_config? no longer compares against Project::DEFAULT_LINT_CONFIG; the test constructs with nil and was renamed accordingly; require_relative "project" dropped (last use). Full os-sdlc suite green: 594 runs, 1571 assertions, 0 failures. Rubocop clean on the lib file; the one test-file offense is pre-existing on an untouched method. Commits
8938d15(fix) and the status-leaf row. Per ADR-0091.