ocloc 0.3.1

Fast, reliable lines-of-code counter with JSON/CSV output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -euo pipefail

echo "[pre-commit] Auto-formatting Rust code (cargo fmt)"
# Auto-fix formatting for the whole workspace. If you prefer only staged files,
# we can enhance this to detect staged paths. For now, keep it simple.
cargo fmt

echo "[pre-commit] Running cargo clippy -- -D warnings"
cargo clippy -- -D warnings

echo "[pre-commit] Running cargo test"
cargo test --quiet

echo "[pre-commit] All checks passed."