Playground
See how FTA analyzes an individual piece of TypeScript code by entering it below.
Input
Output
- FTA Score: 8 (Lower is better)
- OK - Considered Maintainable
Item | Result |
---|---|
Num. lines | 4 |
Cyclomatic Complexity | 1 |
Halstead | |
Unique / Total Operators | 5 (7) |
Unique / Total Operands | 5 (8) |
Length | 10 |
Vocab Size | 15 |
Volume | 39.07 |
Difficulty | 1.88 |
Effort | 73.25 |
Time | 4.07 |
Bugs | 0.01 |
💡
Lower scores for individual files are achieved by:
- Keeping the number of logical paths to a minimum
- Reducing the number of entities or operations in the code
- Avoiding single files that contain 1000s of lines
Last updated on