golang.org/x/tools
This repository provides the golang.org/x/tools module, comprising various tools and packages mostly for static analysis of Go programs, some of which are listed below. Use the "Go reference" link ...
89/100: overall quality above the stdlib waterlevel. Compare against stdlib or another package. How ratings work. API and README badge.
The Go project is only 3x bigger than this project (2891 files against 730).
| Check | Score | Bonus | |
|---|---|---|---|
| complexity | 89 | ||
| average cyclomatic complexity 4.74 against the stdlib average of 4.22 | |||
| complexity_p95 | 88 | ||
| 95th percentile cyclomatic complexity 17 against the stdlib waterlevel of 15 | |||
| file_size_curve | 100 | +8 | |
| share of small files +2.5% against the stdlib size curve | |||
| godoc_coverage | 79 | ||
| 1185 of 1940 exported symbols carry godoc (61% against the stdlib waterlevel of 77%) | |||
| median_file_size | 100 | +10 | |
| median file 3592 B against the stdlib waterlevel of 3966 B | |||
| median_package_size | 100 | +10 | |
| median package 9048 B against the stdlib waterlevel of 21278 B | |||
| test_ratio | 45 | ||
| 700 test functions for 1940 exported symbols (36% pairing, ideal band 80-100%, stdlib waterlevel 80%) | |||