agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
32 lines (26 loc) • 1.49 kB
Markdown
# lib/code-complexity Directory
This directory contains the code complexity analysis system for comprehensive maintainability assessment.
## Core Analysis:
- **analyzeComplexity.js**: Main complexity analysis entry point
- **complexityProjectAnalyzer.js**: Project-level complexity assessment
- **complexityFileAnalyzer.js**: File-level complexity analysis
- **complexityFileCollector.js**: Complexity-relevant file collection
## Metrics Calculation:
- **cyclomaticComplexityCalculator.js**: Cyclomatic complexity measurement
- **cognitiveComplexityCalculator.js**: Cognitive complexity assessment
- **nestingLevelAnalyzer.js**: Code nesting depth analysis
- **functionLengthAnalyzer.js**: Function length and parameter analysis
## Technical Debt:
- **technicalDebtAnalyzer.js**: Technical debt identification and quantification
- **maintainabilityIndexCalculator.js**: Maintainability index calculation
- **codeSmellDetector.js**: Code smell pattern detection
## Assessment:
- **complexityScoreCalculator.js**: Overall complexity scoring
- **complexityGradeProvider.js**: Complexity grade assignment
- **complexityRecommendationGenerator.js**: Complexity reduction recommendations
- **refactoringOpportunityDetector.js**: Refactoring opportunity identification
## Purpose:
- Measure cyclomatic and cognitive complexity
- Identify technical debt and maintainability issues
- Provide actionable recommendations for complexity reduction
- Support comprehensive code quality assessment