github.com/pmezard/go-difflib
Go-difflib is a partial port of python 3 difflib package. Its main goal was to make unified and context diff available in pure Go, mostly for testing purposes.
61/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 1445x bigger than this project (2891 files against 2).
| Check | Score | Bonus | |
|---|---|---|---|
| complexity | 70 | ||
| average cyclomatic complexity 6.00 against the stdlib average of 4.22 | |||
| complexity_p95 | 65 | ||
| 95th percentile cyclomatic complexity 23 against the stdlib waterlevel of 15 | |||
| file_size_curve | 34 | ||
| share of small files -19.6% against the stdlib size curve | |||
| godoc_coverage | 98 | ||
| 16 of 21 exported symbols carry godoc (76% against the stdlib waterlevel of 77%) | |||
| median_file_size | 17 | ||
| median file 22879 B against the stdlib waterlevel of 3966 B | |||
| median_package_size | 63 | ||
| median package 33270 B against the stdlib waterlevel of 21278 B | |||
| test_ratio | 82 | ||
| 14 test functions for 21 exported symbols (66% pairing, ideal band 80-100%, stdlib waterlevel 80%) | |||