Playground
See how FTA analyzes an individual piece of TypeScript code by entering it below.
Input
Output
- FTA Score: 7 (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 | 15 |
Vocab Size | 10 |
Volume | 49.83 |
Difficulty | 3.20 |
Effort | 159.45 |
Time | 8.86 |
Bugs | 0.02 |
💡
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