github.com/hashicorp/golang-lru/v2
Package lru provides three different LRU caches of varying sophistication.
94/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 240x bigger than this project (2891 files against 12).
| Check | Score | Bonus | |
|---|---|---|---|
| complexity | 100 | +10 | |
| average cyclomatic complexity 2.44 against the stdlib average of 4.22 | |||
| complexity_p95 | 100 | +10 | |
| 95th percentile cyclomatic complexity 6 against the stdlib waterlevel of 15 | |||
| file_size_curve | 98 | ||
| share of small files -0.5% against the stdlib size curve | |||
| godoc_coverage | 100 | +10 | |
| 71 of 72 exported symbols carry godoc (98% against the stdlib waterlevel of 77%) | |||
| median_file_size | 70 | ||
| median file 5629 B against the stdlib waterlevel of 3966 B | |||
| median_package_size | 100 | +4 | |
| median package 20270 B against the stdlib waterlevel of 21278 B | |||
| test_ratio | 56 | ||
| 33 test functions for 72 exported symbols (45% pairing, ideal band 80-100%, stdlib waterlevel 80%) | |||