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 519919326e
All checks were successful
continuous-integration/drone/push Build is passing
cppcheck: specify necessary parameters
* that is, both in ci, pre-commit config and in the makefile
* makefile and ci args are a little more strict than the pre-commit ones
* use globs of the file extensions we're after
* add verbosity
2021-10-30 20:05:28 +02:00

32 lines
844 B
YAML

---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- 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]
- 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