Releases: umbgtt10/crap4rust
Releases · umbgtt10/crap4rust
v0.6.0
[0.6.0] - 2025-04-26
Added
--output-format jsonfor structured CI-friendly output--warn-thresholdCLI argument to set the warning threshold independently (default 20.0)src/complexity.rs— cognitive complexity scoring extracted fromsource.rsinto its own moduletests/complexity_tests.rs— 10 direct tests parsing Rust code viasyntests/app_tests.rs— 20 pure logic tests with AAA structuretests/source_tests.rs— full-stack complexity integration tests (renamed fromcomplexity_tests.rs)tests/all_tests.rsplumbing withautotests = falsetests/fixtures/mod.rs— CLI fixture tests organized undertests/fixtures/
Changed
- JSON output format via
--output-format jsonproduces structured report with all fields source.rsreduced from 34 to ~20 functions after complexity extraction- Test files follow
<source>_tests.rsnaming convention - All tests follow AAA (Arrange / Act / Assert) structure
- 69 tests total: 28 fixture + 20 app logic + 11 source + 10 complexity
v0.3.0
--featuresflag for passing Cargo feature flags to the coverage build--all-featuresflag to activate all features during the coverage build--no-default-featuresflag to disable default features during the coverage build--include-test-targetsflag to include test targets in function discovery--exclude-pathflag (repeatable) to omit specific source paths from analysis
v0.2.0
Second public release.
Added
- Regression coverage for root-package-only automatic coverage generation
- Regression coverage ensuring non-production test targets are excluded by default
- Regression coverage ensuring
#[cfg(test)]modules insidesrc/are excluded from discovery - Regression coverage ensuring normal successful runs remain silent on stderr
Changed
- Automatic
cargo llvm-covgeneration now follows the resolved package selection instead of raw CLI package flags - Coverage matching now falls back from exact function start-line matches to the nearest matching line within the discovered function span
- Source discovery now filters out non-production targets and excludes test-only code paths more aggressively