---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-merge-conflict
exclude: ^lib/
- id: check-yaml
- repo: meta
- id: check-hooks-apply
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
- id: cppcheck
args: ["--language=c++", "--std=c++20",
"--enable=warning,performance,portability,information,unusedFunction,missingInclude",
"--config-exclude=lib/", "--error-exitcode=1",
"--verbose"]
files: \.(cpp|cc|cxx,h)$
types_or: [c++, header]
- repo: https://github.com/gringolito/cpp-pre-commit-hooks
rev: v0.1.1
- id: check-using-namespace-directive
- repo: local
- id: make-distclean
name: make distclean
entry: make distclean
language: system
pass_filenames: false
- id: make-tidy
name: make tidy
entry: nice -n 3 make tidy
- id: make-build
name: make build
entry: make build
- id: make-release
name: make release
entry: make release
- id: make-san
name: make san
entry: make san