UNPKG

agentsqripts

Version:

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

30 lines (25 loc) 1.43 kB
# lib/static-bugs Directory This directory contains the static bug detection analyzer that achieves 100/100 quality score with zero false positives. ## Core Files: - **analyzeStaticBugs.js**: Main static bug analysis entry point - **staticBugProjectAnalyzer.js**: Project-level static bug analysis - **staticBugFileAnalyzer.js**: File-level bug detection - **staticBugFileCollector.js**: File collection and filtering - **bugPatterns.js**: Static bug pattern definitions - **qualityGradeProvider.js**: Quality scoring and grading system ## Specialized Detectors: - **detectors/asyncPatternDetector.js**: Async/await pattern analysis - **detectors/dataFlowAnalyzer.js**: Data flow and variable tracking - **detectors/nullSafetyDetector.js**: Null safety and undefined checks - **detectors/reactPatternDetector.js**: React-specific pattern detection - **detectors/resourceLeakDetector.js**: Resource leak identification ## Utilities: - **utils/astParser.js**: AST parsing and analysis utilities - **utils/contextAnalyzer.js**: Code context analysis - **typeCoercionAnalyzer.js**: Type coercion issue detection - **unreachableCodeChecker.js**: Dead code detection ## Purpose: - Detect real bugs with control flow analysis and zero false positives - Provide framework-specific detection (React, Node.js) - Support advanced AST-based analysis for accurate bug identification - Generate actionable recommendations for bug fixes