Fast C++ Pre-commit Hooks

A single static binary that ensures code quality before every push. Zero runtime dependencies.

# Linux, macOS
curl -LsSf https://raw.githubusercontent.com/slowy07/sniffercommit/develop/install.sh | sh

Parallel Execution

Run linters concurrently via Bash background jobs. Fast feedback, no waiting.

Zero Dependencies

Single static binary. No Python, no Node, no runtime required.

Clang Integration

Auto-generate .clang-format and .clang-tidy with curated presets.

CI Generation

GitHub Actions and GitLab CI workflows mirroring your local hooks. One command.

🛠

CMake Scaffolding

Generate CMakeLists.txt with warnings, sanitizers, testing, and Conan support.

📂

Worktree Support

Works in worktrees, submodules, and detached checkouts.

Quick Start

$ sniffercommit init --style google --enable-clang-tidy
$ sniffercommit install
# That's it. Hook fires on every `git commit`.

$ sniffercommit run --all-files
# Or run checks without committing.