Clear Sdlc/Structural edge-cop offenses in config and ticket_body files #1690
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
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
rule-proposal
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#1690
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
RuboCop reports 12 offenses of two
Sdlc/Structuralcops in seven untouched os-sdlc files.The cops are
Sdlc/Structural/DomainEffectInEdgeandSdlc/Structural/PrecedenceInEdge.The Thor session left these files alone.
Ticket #1560 already covers five of the files (see Non-goals); this ticket covers the ones it does not.
Observed
Run in
plugins/os-sdlconmain(commit031244657) withbundle exec rubocop <files> --format emacs.Offenses in files that no open ticket covers:
Offenses in files that #1560 names (line numbers on
maintoday;tracer.rbwas:81in #1560, and the test path wastests/):The session reported "lint offenses also exist in untouched files" and named
extractor/scripts.rbandoverlay_check.rbwithout thesystem_model/directory; the paths above are the real ones.The session did not run RuboCop on a clean
mainbefore the change; this run is onmain.Reproduce
Approach
Clear the five offenses in
document.rb,config_command.rb, andticket_body.rbthrough the lint lessons of the two cops (plugins/os-sdlc/lint-lessons/), one fix per offense, with no behavior change.Use the cop-named fast path (
docs/sdlc-fast-path.md).Required work:
rubocop:disableinplugins/os-sdlc/lib/os_sdlc/project/config/document.rbAcceptance criteria
bundle exec rubocopruns on them, then it reports no offense.Owner sketch
Non-goals (optional)
The five offenses in
extractor/scripts.rb,overlay_check.rb,tracer.rb, andsystem_model_catalog_test.rb; ticket #1560 covers them (update its paths:tests/is nowtest/, andtracer.rb:81is now:80).The RuboCop crash of
ParameterThreadedThroughPrivateMethods(ticket #1102).Origin
DomainEffectInEdge,PrecedenceInEdge) report code written before the cops existed ← no ticket covered these files (#1560 covers five of seven)VERDICT: CREATE
REASON: Offenses existed before the Thor change; #1560 names other files and one other cop.