install — Install Pre-commit Hook
$ sniffercommit install
Installs the following:
.git/hooks/pre-commit— Bash hook with parallel execution.github/workflows/sniffercommit.yml— GitHub Actions workflow (only ifgithub_actions = truein config).gitlab-ci.yml— GitLab CI workflow (only ifgitlab_ci = truein config)
The hook is validated with bash -n before installation to prevent broken hooks.
Uninstall
$ rm .git/hooks/pre-commit $ rm -rf .github/workflows/sniffercommit.yml $ rm -f .gitlab-ci.yml
Or re-run sniffercommit install to regenerate both files from config.