Add lint lessons for Metrics/MethodLength and Minitest/TestMethodName #1440
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#1440
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
Jared ruled on 2026-10-27 that every offense the AI acts on gets a lint lesson; only autocorrectable Layout and Style cops are exempt. Two cops that the gate enforces and that agents acted on in fix-lints today have no lesson file:
Metrics/MethodLengthandMinitest/TestMethodName. Agents got only the_no-lesson-yetdefault, which tells them to capture this ticket.Observed
fix-lints on os-me, 2026-10-27, batch phase. Agents fixed 33
Metrics/MethodLengthoffenses and 4Minitest/TestMethodNameoffenses with no lesson. Both agents reported the missing lesson.Reproduce
prints nothing.
Approach
Write one lesson file for each cop, with the same fields and shape as
metrics-abc-size.yml, after a smell-analysis of one real offense from today's run for each cop.Required work:
Metrics/MethodLengthinplugins/os-sdlc/lint-lessons/metrics-method-length.ymlMinitest/TestMethodNameinplugins/os-sdlc/lint-lessons/minitest-test-method-name.ymlRejected: rely on the default lesson — Jared ruled that the default is a stopgap that asks for a lesson.
Acceptance criteria
Metrics/MethodLengthoffense, when the relay renders lessons, then it shows the MethodLength lesson and not the default.Minitest/TestMethodNameoffense, when the relay renders lessons, then it shows the TestMethodName lesson and not the default.Owner sketch
Origin
_no-lesson-yetdefault asked for this ticket.VERDICT: CREATE
Occurrence: Lint/UnusedMethodArgument and Minitest/NoAssertions also have no lesson
Seen: fix-lints on os-backlog, 2026-10-27, batch group 1 (5 UnusedMethodArgument offenses, 1 NoAssertions offense). The _no-lesson-yet default named Metrics/MethodLength, Lint/UnusedMethodArgument, Minitest/NoAssertions.
Run: Session 0b4d7950-df1c-4eba-a561-ccc19b386a9a
Adds: Two more acted-on cops for this ticket's scope; same lesson shape. Each fix-lints target will likely add more; consider a test that every cop the batch and iterative phases list has a lesson.