This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/.pre-commit-config.yaml
surtur 6c68efc6ee
All checks were successful
continuous-integration/drone/push Build is passing
chore(.pre-commit-config.yaml): bump hook versions
2022-01-21 05:44:28 +01:00

57 lines
1.5 KiB
YAML

---
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
exclude: ^lib/
- repo: meta
hooks:
- id: check-hooks-apply
exclude: ^lib/
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
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: v0.1.1
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