agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
33 lines (27 loc) • 1.5 kB
Markdown
# lib/cleanup Directory
This directory contains the code cleanup analyzer for identifying maintenance opportunities and dead code.
## Core Analysis:
- **analyzeCleanup.js**: Main cleanup analysis entry point
- **cleanupProjectAnalyzer.js**: Project-level cleanup assessment
- **cleanupFileAnalyzer.js**: File-level cleanup analysis
- **cleanupFileCollector.js**: Cleanup-relevant file collection
## Detection Systems:
- **deadCodeDetector.js**: Dead code and unused function detection
- **barrelFileAnalyzer.js**: Barrel file analysis and optimization
- **orphanedCommentDetector.js**: Orphaned comment identification
- **unusedImportDetector.js**: Unused import detection
## Maintenance Analysis:
- **codeMaintenanceAnalyzer.js**: General maintenance opportunity detection
- **fileOrganizationAnalyzer.js**: File organization and structure analysis
- **duplicateFileDetector.js**: Duplicate file identification
- **obsoletePatternDetector.js**: Obsolete pattern detection
## Assessment:
- **cleanupScoreCalculator.js**: Cleanup score calculation
- **cleanupGradeProvider.js**: Cleanup grade assignment
- **cleanupRecommendationGenerator.js**: Cleanup action recommendations
- **maintenancePriorityCalculator.js**: Maintenance priority assessment
## Purpose:
- Identify dead code, unused functions, and orphaned comments
- Analyze barrel files and import/export optimization opportunities
- Provide comprehensive maintenance recommendations
- Support codebase hygiene and organization improvement