ParameterListSignalsMissingObject counts Data.define and Struct.new members #1085
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#1085
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
Sdlc/Structural/ParameterListSignalsMissingObject(Max 4, gate tier) only inspectsdefparameter lists.Data.define(:a, ...)andStruct.new(:a, ...)are send nodes with symbol arguments, so a Data with eight members passes. Nineteen Data or Struct definitions inplugins/os-sdlc/libexceed four members;CrcCensus::Settingshas eight and three factory methods. The cop that exists to flag a missing object misses the one shape where the missing object is a value holder.Observed
Reproduce
Approach
Count
Data.defineandStruct.newmembers against Max. Known hits: 19, so the change enters the sweep tier until lib is clean, then the gate. Add the shape to the cop's lint lesson. No Exclude list.Required work: none beyond the acceptance criteria.
Acceptance criteria
Data.definewith five members and Max 4, when the cop runs, then it reports one offense on the define line.Struct.newwith four members, when the cop runs, then it reports nothing.Origin
roottally showed Settings with eight members passing the cop.