github.com/titpetric/lessgo
A comprehensive LESS to CSS compiler written in Go with a minimal DST (Decorated Syntax Tree) parser, formatter, and renderer. Compiles 65/65 fixture tests with 100% compatibility with lessc.
87/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 64x bigger than this project (2891 files against 45).
| Check | Score | Bonus | |
|---|---|---|---|
| complexity | 75 | ||
| average cyclomatic complexity 5.59 against the stdlib average of 4.22 | |||
| complexity_p95 | 78 | ||
| 95th percentile cyclomatic complexity 19 against the stdlib waterlevel of 15 | |||
| file_size_curve | 100 | +6 | |
| share of small files +1.9% against the stdlib size curve | |||
| godoc_coverage | 100 | +10 | |
| 213 of 237 exported symbols carry godoc (89% against the stdlib waterlevel of 77%) | |||
| median_file_size | 100 | +10 | |
| median file 3422 B against the stdlib waterlevel of 3966 B | |||
| median_package_size | 100 | +10 | |
| median package 14707 B against the stdlib waterlevel of 21278 B | |||
| test_ratio | 25 | ||
| 48 test functions for 237 exported symbols (20% pairing, ideal band 80-100%, stdlib waterlevel 80%) | |||