CRC wave 4: apply FormatValidationRaisingInInitialize, ForwardingClass, Implementation, InwardDependency, LifecycleIvarBehindAttrReader, OwnedMessage, SimulatedPolymorphism, UnreadInstanceVariable renames and moves #1267
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#1267
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
Apply 9 ledger rows (rename and move) for FormatValidationRaisingInInitialize, ForwardingClass, Implementation, InwardDependency, LifecycleIvarBehindAttrReader, OwnedMessage, SimulatedPolymorphism, UnreadInstanceVariable. Each row's path, constant, and test path change as listed in Approach.
Reproduce
n/a: structure-only refactor, no behavior change.
Approach
plugins/os-sdlc/lib/os_sdlc/cops/format_validation_raising_in_initialize/condition_inspection.rb->plugins/os-sdlc/lib/os_sdlc/cops/format_validation_raising_in_initialize/validation_condition.rbRuboCop::Cop::Sdlc::Structural::FormatValidationRaisingInInitialize::ConditionInspection->RuboCop::Cop::Sdlc::Structural::FormatValidationRaisingInInitialize::ValidationConditionplugins/os-sdlc/lib/os_sdlc/cops/forwarding_class/forwarder.rb->plugins/os-sdlc/lib/os_sdlc/cops/forwarding_class/class_match.rbRuboCop::Cop::Sdlc::Structural::ForwardingClass::Forwarder->RuboCop::Cop::Sdlc::Structural::ForwardingClass::ClassMatchplugins/os-sdlc/tests/support/open_implementation.rb->plugins/os-sdlc/tests/support/open_implementation_fixture.rbOpenImplementation->OpenImplementationFixtureplugins/os-sdlc/lib/os_sdlc/cops/constant_reference.rb->plugins/os-sdlc/lib/os_sdlc/cops/inward_dependency/constant_reference.rbRuboCop::Cop::Sdlc::Structural::ConstantReference->RuboCop::Cop::Sdlc::Structural::InwardDependency::ConstantReferenceplugins/os-sdlc/lib/os_sdlc/cops/lifecycle_ivar_behind_attr_reader/attr_lifecycle_mismatch.rb->plugins/os-sdlc/lib/os_sdlc/cops/lifecycle_ivar_behind_attr_reader/attr_lifecycle_offense.rbRuboCop::Cop::Sdlc::Structural::LifecycleIvarBehindAttrReader::AttrLifecycleMismatch->RuboCop::Cop::Sdlc::Structural::LifecycleIvarBehindAttrReader::AttrLifecycleOffenseplugins/os-sdlc/lib/os_sdlc/cops/owned_message/sender.rb->plugins/os-sdlc/lib/os_sdlc/cops/owned_message/send_match.rbRuboCop::Cop::Sdlc::Dry::OwnedMessage::Sender->RuboCop::Cop::Sdlc::Dry::OwnedMessage::SendMatchplugins/os-sdlc/lib/os_sdlc/cops/simulated_polymorphism/offense_message.rb->plugins/os-sdlc/lib/os_sdlc/cops/simulated_polymorphism/message.rbRuboCop::Cop::Sdlc::Structural::SimulatedPolymorphism::OffenseMessage->RuboCop::Cop::Sdlc::Structural::SimulatedPolymorphism::Messageplugins/os-sdlc/lib/os_sdlc/cops/unread_instance_variable/generated_members.rb->plugins/os-sdlc/lib/os_sdlc/cops/unread_instance_variable/member_generating_call.rbRuboCop::Cop::Sdlc::Structural::UnreadInstanceVariable::GeneratedMembers->RuboCop::Cop::Sdlc::Structural::UnreadInstanceVariable::MemberGeneratingCallplugins/os-sdlc/lib/os_sdlc/cops/unread_instance_variable/scope.rb->plugins/os-sdlc/lib/os_sdlc/cops/unread_instance_variable/unread_assignments.rbRuboCop::Cop::Sdlc::Structural::UnreadInstanceVariable::Scope->RuboCop::Cop::Sdlc::Structural::UnreadInstanceVariable::UnreadAssignmentsBefore you finish, grep the repository for each old file path and each old constant, not only the constant. Config and docs keep old paths (for example .rubocop.yml, loader collapse lists).
Acceptance criteria
cd plugins/os-sdlc && ruby tests/all.rb0 failures.ruby -e 'require "./plugins/os-sdlc/lib/os_sdlc"; OsSdlc::Db.connect!(":memory:"); OsSdlc.loader.eager_load'silent.Owner sketch
Each constant matches its new path; callers follow the new name.
Non-goals
Origin
fc4f216d; rows applied 9/9; rows deviated 0; rows blocked 0Correction to the earlier comment: commit
2c7d21f2; rows applied 9/9; rows deviated 0; rows blocked 0Resolution
Done: Applied 9 of 9 rows: 8 cop helper renames and moves, plus OpenImplementation -> OpenImplementationFixture.
Evidence: Commit
2c7d21f2; ledger commitsa09feda6; suite 2458 runs 0 failures; eager load silent; crc-ledger-check and crc-placement exit 0.Follow-ups: none