Give inflection one owner in os-sdlc lib #1103
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#1103
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 os-sdlc lib has three copies of underscore/camelize: crc/census/definition.rb, crc/records/path_lookup.rb, and collaborator_pass/concept_brief/concept.rb. concept_brief/site.rb camelizes too. Inflection has no single owner.
Reproduce
n/a: design gap.
Approach
Give inflection one owner.
Required work:
Acceptance criteria
Origin
17d4c688), session 6f78b932-f117-4bd7-bbed-524776dbb719.VERDICT: CREATE
Occurrence: Give the camel-to-snake rule one owner (principle 8)
Seen: plugins/os-sdlc/lib/os_sdlc/crc/records/path_lookup.rb
Run: Session: f1340f6a-3a9c-4161-984d-16e6863438c7
Adds: two more copies and the acronym split; a Zeitwerk-inflector question; a related ledger-row rule.
The camel-to-snake rule has five copies in os-sdlc, under
plugins/os-sdlc/lib/os_sdlc/:crc/records/path_lookup.rb:57: simple formname.gsub(/([a-z\d])([A-Z])/, '\1_\2').downcasecollaborator_pass/concept_brief/concept.rb:19:def underscore(part), same simple form at line 20crc/definitions/definition.rb:11:def underscore(word), acronym-aware form([A-Z]+)([A-Z][a-z])firstcops/structural/unused_private_method/superclass_definition.rb:34:gsubchain infile_name, form([A-Z]+)([A-Z][a-z])cops/dry/repeated_collaborator_construction/construction.rb:25:gsubchain inextracted_name, form([A-Z\d]+)([A-Z][a-z])The three regex forms differ on acronyms. Question: can the Zeitwerk inflector (ADR-0090) be the one owner?
A second copy of a different rule:
plugins/os-sdlc/lib/os_sdlc/crc/placement/rulings.rb:29isrenames.fetch(path, path). It answers "what is the current constant or path of a ledger row".plugins/os-sdlc/lib/os_sdlc/crc/records/row_check.rb:39answers it differently:return row.fetch("constant") if pending?. Thepending?branch is absent fromrulings.rb. Principle 8 track, not started.