github.com/microsoft/TypeScript/tsc
To format code you need to have a formatting context and a SourceFile. The formatting context contains all user settings like tab size, newline character, etc.
80/100: overall quality above the stdlib waterlevel. Compare against stdlib or another package. How ratings work. API and README badge.
This project is 1x bigger than the Go project itself (5051 files against 2891).
| Check | Score | Bonus | |
|---|---|---|---|
| complexity | 92 | ||
| average cyclomatic complexity 4.54 against the stdlib average of 4.20 | |||
| complexity_p95 | 100 | ||
| 95th percentile cyclomatic complexity 15 against the stdlib waterlevel of 15 | |||
| file_size_curve | 100 | +10 | |
| share of small files +17.0% against the stdlib size curve | |||
| godoc_coverage | 24 | ||
| 1803 of 9958 exported symbols carry godoc (18% against the stdlib waterlevel of 74%) | |||
| median_file_size | 100 | +10 | |
| median file 895 B against the stdlib waterlevel of 3987 B | |||
| median_package_size | 54 | ||
| median package 40437 B against the stdlib waterlevel of 22072 B | |||
| test_ratio | 70 | ||
| 5641 test functions for 9958 exported symbols (56% pairing, ideal band 80-100%, stdlib waterlevel 78%) | |||