Deduplicate PositiveChecker/NegativeChecker #initialize in os-vault/eval/bin/check #382

Closed
opened 2026-08-14 20:12:13 +00:00 by jared · 2 comments
Owner

Parent #369. The one non-test real hit from the DuplicatedStatementSequence audit.

Build: plugins/os-vault/eval/bin/check -- NegativeChecker#initialize duplicates PositiveChecker#initialize verbatim. Extract the shared construction into a common base or shared initializer.

Acceptance:

  • the duplication is gone; Sdlc/Dry/DuplicatedStatementSequence no longer flags this file.
  • eval harness still runs unchanged.

Blocked-by: none (out of #370's test-only scope).

Parent #369. The one non-test real hit from the DuplicatedStatementSequence audit. Build: plugins/os-vault/eval/bin/check -- NegativeChecker#initialize duplicates PositiveChecker#initialize verbatim. Extract the shared construction into a common base or shared initializer. Acceptance: - the duplication is gone; Sdlc/Dry/DuplicatedStatementSequence no longer flags this file. - eval harness still runs unchanged. Blocked-by: none (out of #370's test-only scope).
Author
Owner

Starting: dedup os-vault eval check initializers

Starting: dedup os-vault eval check initializers
Author
Owner

Resolution

Done: Extracted Checker base class; PositiveChecker/NegativeChecker#initialize now share it via super

Evidence: Commit edeca6a; ruby -c OK; eval self-test 23/23 passed

Follow-ups: none

## Resolution **Done:** Extracted Checker base class; PositiveChecker/NegativeChecker#initialize now share it via super **Evidence:** Commit edeca6a; ruby -c OK; eval self-test 23/23 passed **Follow-ups:** none
jared closed this issue 2026-08-14 20:31:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#382
No description provided.