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

57 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-24 23:45:28 +02:00
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
2021-10-24 23:45:28 +02:00
hooks:
- id: check-merge-conflict
exclude: ^lib/
- id: check-yaml
exclude: ^lib/
- repo: meta
hooks:
- id: check-hooks-apply
exclude: ^lib/
2021-10-24 23:45:28 +02:00
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
2021-10-24 23:45:28 +02:00
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/
2021-10-24 23:45:28 +02:00
- repo: local
hooks:
- id: make-distclean
name: make distclean
entry: make distclean
2021-10-24 23:45:28 +02:00
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
2021-10-24 23:45:28 +02:00
name: make release
entry: make release
2021-10-24 23:45:28 +02:00
language: system
pass_filenames: false
- id: make-san
name: make san
entry: make san
language: system
pass_filenames: false