forked from arxlang/arxcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (48 loc) · 1.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (48 loc) · 1.25 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
default_stages:
- commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
# current issue:
# https://github.com/include-what-you-use/include-what-you-use/issues/270
# - id: iwyu
# name: iwyu
# entry: ./scripts/iwyu.sh
# language: system
# files: ^arx\/.*\.(cpp|h)$
# pass_filenames: true
# type_or: [c++, c]
# stages:
# - commit
- id: clang-tidy
name: clang-tidy
entry: ./scripts/run-clang-tidy.sh
language: system
exclude: ^$
pass_filenames: false
stages:
- commit
types_or: [c++, c]
- id: clang-format
name: clang-format
entry: clang-format --Werror --style=file -i --verbose
exclude: ^$
files: ""
language: system
pass_filenames: true
stages:
- commit
types_or: [c++, c]
- id: cppcheck
name: cppcheck
entry: "cppcheck --force --std=c++20 --error-exitcode=1 src/"
language: system
pass_filenames: false
stages:
- commit
types_or: [c++, c]