57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
---
|
|
fail_fast: false
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
exclude: ^lib/
|
|
- id: check-yaml
|
|
exclude: ^lib/
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
exclude: ^lib/
|
|
- repo: https://github.com/pocc/pre-commit-hooks
|
|
rev: v1.3.4
|
|
hooks:
|
|
- 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: 3481ddf0fb
|
|
hooks:
|
|
- id: check-using-namespace-directive
|
|
exclude: ^lib/
|
|
- repo: local
|
|
hooks:
|
|
- 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
|
|
language: system
|
|
pass_filenames: false
|
|
- id: make-build
|
|
name: make build
|
|
entry: make build
|
|
language: system
|
|
pass_filenames: false
|
|
- id: make-release
|
|
name: make release
|
|
entry: make release
|
|
language: system
|
|
pass_filenames: false
|
|
- id: make-san
|
|
name: make san
|
|
entry: make san
|
|
language: system
|
|
pass_filenames: false
|