-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (31 loc) · 1.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
32 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [--style=file]
exclude: ^credence/frontend/lexer\.cc$
- repo: local
hooks:
- id: clang-tidy
name: clang-tidy
entry: bash -c 'printf "%s\n" "$@" | xargs -P "$(nproc 2>/dev/null || sysctl -n hw.ncpu)" -I{} clang-tidy -p build {}' --
language: system
types: [c++, c]
exclude: ^credence/frontend/lexer\.cc$
- id: cppcheck
name: cppcheck
# one invocation at a time - parallel batches share the build dir and
# corrupt each other's analysis cache
require_serial: true
entry: cppcheck
args: ["--enable=warning,performance,portability,style", --inline-suppr, --error-exitcode=1, --cppcheck-build-dir=./build, --language=c++, -I., --suppressions-list=./cppcheck.suppress]
language: system
types: [c++, c]
exclude: ^credence/frontend/lexer\.cc$