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 7f05984946
All checks were successful
continuous-integration/drone/push Build is passing
integrate clang-tidy into cmake
* consolidate everything with the makefile, the "tidy" target now just
  sets the env var that is checked for in CMakeLists
* rm clang-tidy from pre-commit as it's run as part of the "test"
  makefile target later in the file anyway
2021-12-05 05:13:07 +01:00

49 lines
1.2 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/
- 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",
"--verbose"]
files: \.(cpp|cc|cxx,h)$
types: [file, c++]
types_or: [file, c++, header]
exclude: ^lib/
- repo: https://github.com/gringolito/cpp-pre-commit-hooks
rev: 3481ddf0fb
hooks:
- id: check-using-namespace-directive
exclude: ^lib/
- repo: local
hooks:
- id: make-test
name: make test
entry: make
args: ["test"]
language: system
pass_filenames: false
- id: build-release
name: make release
entry: make
args: ["release"]
language: system
pass_filenames: false
- id: make-san
name: make san
entry: make
args: ["san"]
language: system
pass_filenames: false