Raise DuplicatedStatementSequence WINDOW_SIZE to 3 #389
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#389
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?
Post-#380 audit: 19/20 residual offenses are arrange-step/test-setup boilerplate (construction pairs, fixture setup, assert-select idioms). Measured with a scratch cop copy: WINDOW_SIZE=3 drops 20 -> 1 offense. Trade-off: also stops catching the 2-statement config.rb duplication, handled separately in its own ticket. Change WINDOW_SIZE in plugins/os-sdlc/lib/os_sdlc/cops/duplicated_statement_sequence.rb, update tests, re-measure.
Retargeting per user decision: scoping DuplicatedStatementSequence to production code (Exclude test/eval paths) instead of raising WINDOW_SIZE to 3.
Resolution
Done: Retargeted per user decision: kept WINDOW_SIZE=2, scoped Sdlc/Dry/DuplicatedStatementSequence to production code via Exclude globs for tests/, test/, and eval/ dirs in plugins/os-sdlc/.rubocop.yml
Evidence: Commits
e3ee223+a143310; repo-wide offenses 20 -> 1 (only audit.rb:207 remains; config.rb signal was preserved until fixed by #390 ina34bc1c); os-sdlc suite 876 runs greenFollow-ups: Residual audit.rb offense captured as #391