Fast TypeScript (Code Complexity) Analyzer
6 months ago
- #Static Analysis
- #Rust
- #TypeScript
- FTA (Fast TypeScript Analyzer) is a super-fast TypeScript static analysis tool written in Rust.
- It uses swc to parse TypeScript and JavaScript code, then analyzes complexity and maintainability.
- FTA can analyze up to 1600 files per second on typical hardware.
- The tool provides an FTA Score for each file, indicating quality (lower is better).
- Example output includes file names, line counts, FTA Scores, and assessments (e.g., 'Needs improvement').
- FTA exposes full metrics like cyclomatic complexity (cyclo), Halstead metrics, and bug estimates.
- Users can run FTA via CLI (`npx fta-cli`) or explore individual files in the Playground.
- FTA is open-source, and contributions are welcome on its GitHub repository.