Highlights
- Strict configuration schemas now reject unknown fields and report the originating file and location, preventing silent configuration mistakes.
- Structure rules support rule-level
count_exclude;explainshows raw/effective counts and the source of every active exclusion. - A trailing-slash scope such as
scope = "tests/"now selects that directory and its entire subtree. explaininventory now uses the same configured scan boundaries ascheck, including scanner excludes and gitignore behavior.- The GitHub Action cache key now hashes the canonical
.sloc-guard.tomlfile.
Upgrade note
Configurations containing unknown or misspelled fields that were silently ignored by v0.5.0 will now fail with a source-attributed error. Correct those fields before upgrading CI.
Installation
cargo install sloc-guard --version 0.6.0 --locked| Platform | Architecture | File |
|---|---|---|
| Windows | x64 | sloc-guard-v0.6.0-windows-x64.zip |
| Windows | arm64 | sloc-guard-v0.6.0-windows-arm64.zip |
| Linux | x64 | sloc-guard-v0.6.0-linux-x64.tar.gz |
| Linux | arm64 | sloc-guard-v0.6.0-linux-arm64.tar.gz |
| macOS | x64 | sloc-guard-v0.6.0-macos-x64.tar.gz |
| macOS | arm64 | sloc-guard-v0.6.0-macos-arm64.tar.gz |
Checksums are available in checksums-sha256.txt.
Full changelog: v0.5.0...v0.6.0