Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 10 Jul 10:40
· 14 commits to master since this release

Highlights

  • Discover the nearest .sloc-guard.toml from the invocation directory up to the Git repository boundary.
  • Keep configuration-file patterns stable and relative to the configuration root across check, stats, snapshot, structure rules, output, cache, and baseline handling.
  • Report the selected configuration with -v, and show an actionable built-in-defaults notice for interactive output without polluting quiet or machine-readable output.
  • Make explain --sources use the same ancestor discovery and report the effective source chain.
  • Unify logical-path glob normalization while preserving basename-only patterns and explicit rooted-pattern behavior.

Compatibility and migration

  • Configuration-file path patterns are now evaluated relative to the discovered configuration root. CLI --exclude remains relative to the invocation directory.
  • The cache format is now v4. Existing caches are invalidated and rebuilt automatically.
  • Baselines generated by older versions from a project subdirectory can contain ambiguous path keys. Regenerate those baselines from the project root after upgrading.
  • Rust library callers relying on basename-only StructureScanConfig::scanner_exclude_dir_names values should migrate to configuration-root-relative safe prefixes.

Installation

cargo install sloc-guard --version 0.5.0

Or download the appropriate binary from the assets below.

Platform Architecture File
Windows x64 sloc-guard-v0.5.0-windows-x64.zip
Windows arm64 sloc-guard-v0.5.0-windows-arm64.zip
Linux x64 sloc-guard-v0.5.0-linux-x64.tar.gz
Linux arm64 sloc-guard-v0.5.0-linux-arm64.tar.gz
macOS x64 sloc-guard-v0.5.0-macos-x64.tar.gz
macOS arm64 sloc-guard-v0.5.0-macos-arm64.tar.gz

Commits

  • chore: bump version to 0.5.0 (7c3e2be)
  • test: satisfy Clippy 1.97 assertion lint (f4939de)
  • feat: stabilize config behavior in subdirectories (db00b8c)

Full Changelog: v0.4.0...v0.5.0