2021-10-24 23:45:28 +02:00
|
|
|
---
|
|
|
|
fail_fast: false
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-01-21 05:44:28 +01:00
|
|
|
rev: v4.1.0
|
2021-10-24 23:45:28 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
2021-12-05 03:10:50 +01:00
|
|
|
exclude: ^lib/
|
2022-01-06 22:12:50 +01:00
|
|
|
- id: check-yaml
|
|
|
|
exclude: ^lib/
|
2021-10-30 20:57:28 +02:00
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
2021-12-05 03:10:50 +01:00
|
|
|
exclude: ^lib/
|
2021-10-24 23:45:28 +02:00
|
|
|
- repo: https://github.com/pocc/pre-commit-hooks
|
2022-01-21 05:44:28 +01:00
|
|
|
rev: v1.3.5
|
2021-10-24 23:45:28 +02:00
|
|
|
hooks:
|
|
|
|
- id: cppcheck
|
2021-10-29 22:43:03 +02:00
|
|
|
args: ["--language=c++", "--std=c++20",
|
|
|
|
"--enable=warning,performance,portability,information,unusedFunction,missingInclude",
|
2022-01-06 22:12:50 +01:00
|
|
|
"--config-exclude=lib/", "--error-exitcode=1",
|
2021-10-29 22:43:03 +02:00
|
|
|
"--verbose"]
|
|
|
|
files: \.(cpp|cc|cxx,h)$
|
2022-01-06 22:12:50 +01:00
|
|
|
types_or: [c++, header]
|
2021-11-13 21:58:05 +01:00
|
|
|
- repo: https://github.com/gringolito/cpp-pre-commit-hooks
|
2022-01-21 05:44:28 +01:00
|
|
|
rev: v0.1.1
|
2021-11-13 21:58:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: check-using-namespace-directive
|
2021-12-05 03:10:50 +01:00
|
|
|
exclude: ^lib/
|
2021-10-24 23:45:28 +02:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2022-01-01 07:45:41 +01:00
|
|
|
- id: make-distclean
|
|
|
|
name: make distclean
|
|
|
|
entry: make distclean
|
2021-10-24 23:45:28 +02:00
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2022-01-01 07:45:41 +01:00
|
|
|
- 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
|
2021-10-24 23:45:28 +02:00
|
|
|
name: make release
|
2021-12-29 04:45:23 +01:00
|
|
|
entry: make release
|
2021-10-24 23:45:28 +02:00
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2021-12-03 20:34:45 +01:00
|
|
|
- id: make-san
|
|
|
|
name: make san
|
2021-12-29 04:45:23 +01:00
|
|
|
entry: make san
|
2021-12-03 20:34:45 +01:00
|
|
|
language: system
|
|
|
|
pass_filenames: false
|