File Naming Audit - Remove Temporary/Versioned File Name Patterns
Resolved ๐ฌ 3 comments Opened Nov 13, 2025 by mrveiss Closed Jan 13, 2026
๐ฏ Objective
Audit the entire codebase for files using temporary or versioned naming patterns (_fix, _v2, _optimized, etc.) and rename them to permanent, descriptive names following the new File Naming Standards.
๐ Current Policy (CLAUDE.md)
Forbidden patterns:
_fix,_fixed,_fix2_v2,_v3,_version2_optimized,_improved,_better_new,_old,_legacy_temp,_tmp,_backup_copy,_draft_updated,_revised,_refactored- Date-based suffixes:
_20250113,_jan2025
Exception: Test files may use _unit_test.py, _integration_test.py (indicates test type, not version)
๐ Audit Scope
Search for files with forbidden patterns across:
- Python files (
*.py) - TypeScript files (
*.ts) - Vue files (
*.vue) - Configuration files
- Script files
- Documentation files
Exclude:
venv/node_modules/archives/reports/
โ Success Criteria
- [ ] Complete file audit performed across entire codebase
- [ ] All violations identified and documented
- [ ] Renaming plan created with proper permanent names
- [ ] All imports/references updated for each renamed file
- [ ] Files renamed atomically with import updates
- [ ] Old files removed from repository
- [ ] Tests pass after all renames
- [ ] No regressions introduced
๐ Implementation Process
Step 1: Audit
# Search for forbidden patterns
find . -type f \
\( -name "*_fix*.py" -o -name "*_v2*.py" -o -name "*_optimized*.py" \
-o -name "*_new*.py" -o -name "*_temp*.py" -o -name "*_backup*.py" \
-o -name "*_copy*.py" \) \
-not -path "*/venv/*" \
-not -path "*/node_modules/*" \
-not -path "*/archives/*" \
-not -path "*/reports/*"
Step 2: Analyze Each File
For each file found:
- Understand its purpose
- Check if it's the canonical version or duplicate
- Determine proper permanent name
- Identify all files that import/reference it
Step 3: Rename Systematically
For each file:
- Choose permanent name (descriptive, follows conventions)
- Update all imports/references
- Rename file
- Test
- Commit atomically (rename + all updates together)
Step 4: Verify
- Run full test suite
- Check all imports work
- Verify no broken references
- Remove old/duplicate files
๐ Tracking Template
For each violation found:
**File**: `path/to/file_v2.py`
**Issue**: Uses forbidden `_v2` pattern
**Purpose**: [What the file does]
**Canonical**: [Is this the canonical version? Yes/No]
**New Name**: `path/to/proper_name.py`
**References**: [List of files that import this]
**Status**: [ ] Renamed, [ ] References updated, [ ] Tested
๐ References
- CLAUDE.md - File Naming Standards (Mandatory)
- Memory MCP: "File Naming Standards Policy 2025-11"
- Related: #11568 (Configuration Consolidation)
๐ท๏ธ Labels
refactor, code-quality, technical-debt, cleanup
โฑ๏ธ Estimate
1-2 weeks (depending on violations found)
๐ Success Metrics
- Files renamed: [TBD after audit]
- Imports updated: [TBD after audit]
- Tests passing: 100%
- Violations remaining: 0
This issue has 3 comments on GitHub. Read the full discussion on GitHub โ