ExcelCannon code standards
A tool whose pitch is “understand a workbook's complexity quickly” publishes its own. The limits live in standards.toml; each row is read from the outcome one check left behind, so the Measured column names the host and commit the number came from — coverage is measurable only in the Linux container, the .NET gates only on Windows, and this page is the union of what each measured. Every row is gated at zero violations: a single breach fails the gate.
Two rows read differently from the rest. coverage.lines and coverage.test_lines are percentages, and they split one export: product lines, and the lines inside inline #[cfg(test)] modules, which are covered by construction and would otherwise flatter the first number. dotnet.coverage_shortfall is a shortfall in percentage points rather than a coverage figure — every other row is a count to drive to zero, so 100 there means no coverage at all.
Standards
| Metric | Limit | Worst | Violations | Measured |
|---|---|---|---|---|
| complexity.cognitive | 21 | 21 | 0 | windows @ 7569032 |
| complexity.cyclomatic | 21 | 20 | 0 | windows @ 7569032 |
| complexity.halstead | 79 | 44.36 | 0 | windows @ 7569032 |
| coverage.lines | 100 | 100 | 0 | linux @ 7569032 |
| coverage.test_lines | 100 | 100 | 0 | linux @ 7569032 |
| crap | 25 | 20 | 0 | linux @ 7569032 |
| deadcode.allow_attribute | 0 | 0 | 0 | windows @ 7569032 |
| deadcode.machete | 0 | 0 | 0 | windows @ 7569032 |
| deadcode.shear | 0 | 0 | 0 | windows @ 7569032 |
| deadcode.unreachable_pub | 0 | 0 | 0 | windows @ 7569032 |
| dotnet.analyzer | 0 | 0 | 0 | windows @ 7569032 |
| dotnet.coverage_shortfall | 0 | 0 | 0 | windows @ 7569032 |
| dotnet.mutants | 0 | 0 | 0 | windows @ 7569032 |
| duplication.clones | 0 | 0 | 0 | windows @ 7569032 |
| mutants.missed | 0 | 0 | 0 | windows @ 7569032 |
| scripts.analyzer | 0 | 0 | 0 | windows @ 7569032 |
| size.file_ploc | 499 | 496 | 0 | windows @ 7569032 |
The ten breaches farthest past their limit
| Site | Metric | Value | Limit |
|---|
The ten largest files
| File | Metric | Physical lines of code | Limit |
|---|