Fix the 10 unmapped-cop offenses that crash the os-sdlc lint worklist #825
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#825
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
The fix-lints lint worklist fails on main for the os-sdlc target. Rubocop reports 10 offenses from 4 cops that have no fix-lints phase, and
Worklist#raise_if_unmappedraises. The offenses were on main at3063a13f, before #802. All 10 are autocorrectable. Decide whether to fix the offenses or map the cops to a phase.Observed
Offense counts: Layout/ArgumentAlignment 4, Layout/HashAlignment 4, Layout/EmptyLinesAroundClassBody 1, Style/FrozenStringLiteralComment 1.
Files:
plugins/os-sdlc/Gemfile,plugins/os-sdlc/tests/model/agent/transcript_path_test.rb,plugins/os-sdlc/tests/model/project_target_path_test.rb,plugins/os-sdlc/tests/presenter/gate/lesson_relay_test.rb.Reproduce
Origin
Gemfileor those test files at commit time (unverified)Follow-up dropped (ticket-skeptic, depth-1): the os-sdlc pipeline lint gate skips extensionless Ruby files such as Gemfile (RubyFile.ruby?, adapter/project/ruby_file.rb:10-16). One old Gemfile offense is not a recurring failure, and lint-worklist already lints the whole target and caught it.
Resolution
Done: Autocorrected the 10 offenses in Gemfile and 3 os-sdlc test files (rubocop -a on the tests; -A on Gemfile for the frozen_string_literal comment). No worklist phase mapping added; UnmappedCop stays deliberate.
Evidence: Commit
a46f31b2on main. bin/lint-worklist --target os-sdlc exits 0. ruby tests/all.rb: 1328 runs, 2916 assertions, 0 failures, 0 errors, 9 skips.Follow-ups: Gemfile lint-gate gap: dropped by ticket-skeptic (depth-1, speculative hardening); reason posted as a comment. Pre-commit lint hook for hand commits: dropped, one layout slip does not justify it. Remaining worklist offenses (Sdlc/Structural cops): none filed; already visible in lint-worklist output.