ExcelCannon code standards
A tool whose pitch is “understand a workbook's complexity quickly” publishes its own. Each row is a metric of dotnet-fast metrics, read from the release commit's standards.yml run, and the run and commit are named under the table.
Every row has a budget, and a row over its budget fails the gate. Coverage is measured over the whole test suite under coverage instrumentation, with the parity and golden data present.
Standards
| Metric | Budget | Value | Status |
|---|---|---|---|
| Cyclomatic complexity | <= 22 | 20 | ok |
| Cognitive complexity | <= 22 | 14 | ok |
| Halstead difficulty | <= 80 | 63.3 | ok |
| Lines per file | <= 500 | 246 | ok |
| Test coverage | 100% | 100% | ok |
| CRAP | <= 25 | 20 | ok |
| Surviving mutants | 0 | — | not measured |
| Dead code | 0 | 0 | ok |
| Redundant code | 0 | 0 | ok |
| Dynamic typing | 0 | 0 | ok |
| Lines per member | <= 50 | 46 | ok |
| Nesting depth | <= 3 | 3 | ok |
| Parameter count | <= 7 | 7 | ok |
| Maintainability index | >= 20 | 37.5 | ok |
Measured at commit 95d4264 in this standards.yml run.
Surviving mutants are not measured yet: the C# engine has no mutation tool in its gate, so that row reads “not measured”.