UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

37 lines (30 loc) 1.75 kB
# lib/export-promotion Directory This directory contains the export opportunity analyzer for identifying functions that should be exported for better code reusability. ## Core Analysis: - **analyzeExportOpportunities.js**: Main export opportunity analysis entry point - **exportProjectAnalyzer.js**: Project-level export assessment - **exportFileAnalyzer.js**: File-level export analysis - **exportFileCollector.js**: Export-relevant file collection ## Detection Systems: - **utilityFunctionDetector.js**: Utility function identification - **reusabilityAnalyzer.js**: Function reusability assessment - **exportPatternAnalyzer.js**: Current export pattern analysis - **crossFileUsageDetector.js**: Cross-file function usage detection ## Opportunity Assessment: - **exportOpportunityCalculator.js**: Export opportunity scoring - **functionComplexityAnalyzer.js**: Function complexity for export suitability - **dependencyAnalyzer.js**: Function dependency analysis - **scopeAnalyzer.js**: Function scope and accessibility analysis ## Recommendations: - **exportRecommendationGenerator.js**: Export promotion recommendations - **refactoringGuidanceProvider.js**: Refactoring guidance for exports - **apiDesignAnalyzer.js**: API design improvement suggestions ## Assessment: - **exportScoreCalculator.js**: Export opportunity scoring - **exportGradeProvider.js**: Export grade assignment - **promotionPriorityCalculator.js**: Export promotion priority assessment ## Purpose: - Identify utility functions that could benefit from being exported - Analyze function reusability and cross-file usage patterns - Provide recommendations for better code organization and reusability - Support API design improvement through strategic function exports