Dead code audit and strict workspace lint enforcement #240
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jwilger/eventcore#240
Loading…
Add table
Add a link
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?
Background
The discovery of vestigial LocalCoordinator code reveals a subtle gap in quality enforcement. The project already has strict linting:
#![forbid(dead_code)]- strictest level, cannot be overridden#![deny(clippy::allow_attributes)]- prevents#[allow(...)]#[allow]usageHow did dead code slip through?
The underscore prefix (
_coordinator) is Rust's OFFICIAL escape hatch from dead_code warnings. When you write_foo, you're telling the compiler "I know this is unused, suppress the warning." This is legitimate for:But it was MISUSED for vestigial code that should have been removed.
The Real Problem
Audit Scope
Phase 1: Underscore-Prefix Audit
Systematically review EVERY
_foopattern in the codebase. For each occurrence, document:Phase 2: Documentation-Code Sync
Verify every type/trait mentioned in docs exists:
ignoreexamples should compile if un-ignoredPhase 3: Lint Configuration Consolidation
Migrate to workspace-level configuration (Cargo 1.74+) using
[workspace.lints]for single source of truth.Phase 4: Add Missing Lint Coverage
Consider adding:
clippy::unused_self- methods that don't use selfclippy::unused_async- async functions that don't awaitAcceptance Criteria
[workspace.lints]in root Cargo.toml[lints] workspace = trueMigrated from beads issue: eventcore-igt