Troubleshooting

SymptomLikely CauseFix
clang-tidy: cannot find ....clang-tidy missingsniffercommit init --enable-clang-tidy
bash: pre-commit: No such file or directoryHook not installedsniffercommit install
Hook exits immediately with no outputFile patterns don't match staged filesRun sniffercommit run --all-files to test outside hook
git commit but hook doesn't runStaged files don't match config checksCheck [checks.*.files] patterns in .sniffercommit.toml
CI workflow not createdgithub_actions is false in configsniffercommit generate-gha (bypasses config)
GitLab CI not createdgitlab_ci is false in configsniffercommit generate-gitlab (bypasses config)

Debug Mode

$ sniffercommit run --verbose --all-files

See the exact shell commands being executed.