FTA (Fast TypeScript Analyzer) is a static analysis tool designed for TypeScript and JavaScript code, implemented in Rust for superior performance. It utilizes the SWC parser to efficiently analyze codebases and generate metrics concerning complexity and maintainability. The current stable version is 3.0.0, which features upgraded SWC libraries for enhanced accuracy in operand/operator counting and includes support for modern JavaScript/TypeScript syntax such as `import with`. The project exhibits an active release cadence, with frequent updates and major versions, reflecting continuous development. A key differentiator is its exceptional speed, capable of processing up to 1600 files per second on typical hardware, making it highly suitable for large-scale projects. It provides clear, actionable analytics to help developers identify and address potential maintainability issues.
npm install fta-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates the basic usage of the `fta-cli` command-line tool to analyze a project directory or specific files.
Review your analysis output and adjust any custom thresholds or baseline expectations for FTA scores to account for the updated calculation methodology.
Re-run analysis on your codebase with v2.0.0+ to establish new baselines for Halstead and FTA scores. Do not directly compare scores from v1.x with v2.x or v3.x.
If you relied on comments being included in scores or need to analyze very small files, explicitly set `--include-comments true` or `--exclude-under 0` when running the CLI. The `output_limit` option's behavior also changed in v1.0.0, now only affecting `table` format output.
Ensure you run `npx fta-cli ...` to execute the package without global installation, or install it globally with `npm install -g fta-cli` if preferred.
Double-check the provided path. Ensure it's an existing directory or file, and that your current working directory is correct if using relative paths.
Update `fta-cli` to the latest version. Version 3.0.0 and above significantly improve support for modern syntax due to SWC upgrades. If the issue persists, report it to the `fta-cli` GitHub repository.
No dependency data recorded yet.