-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-hooks.yaml
57 lines (56 loc) · 2.14 KB
/
.pre-commit-hooks.yaml
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
54
55
56
57
---
# This file tells https://pre-commit.com/
# which hooks are provided by this repo
# for use by other git repos.
- id: clang-format
name: clang-format
entry: cmake-pc-clang-format-hook
description: Formats C/CPP code
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|h|hpp|hxx|ixx|m|mxx)$
language: python
- id: clang-tidy
name: clang-tidy
entry: cmake-pc-clang-tidy-hook
description: Find warnings/errors in C/CPP code
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|h|hpp|hxx|ixx|m|mxx)$
language: python
- id: cppcheck
name: cppcheck (system)
entry: cmake-pc-cppcheck-hook
description: Find warnings/errors in C/CPP code
# NB: no h|hpp|hxx here since we are calling cppcheck with --project=/path/to/compile_commands.json which does not
# contain header files
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|ixx|m|mxx)$
language: python
- id: cppcheck-conda
name: cppcheck (conda)
entry: cmake-pc-cppcheck-hook
description: Find warnings/errors in C/CPP code
# NB: no h|hpp|hxx here since we are calling cppcheck with --project=/path/to/compile_commands.json which does not
# contain header files
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|ixx|m|mxx)$
language: conda
- id: cpplint
name: cpplint
entry: cmake-pc-cpplint-hook
description: Find warnings/errors in C/CPP code
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cuh|cxx|cxxm|h|hh|hpp|hxx|ixx|mxx)$
language: python
- id: include-what-you-use
name: include-what-you-use (system)
entry: cmake-pc-include-what-you-use-hook
description: Find unused include directives in C/CPP code
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|h|hpp|hxx|ixx|m|mxx)$
language: python
- id: include-what-you-use-conda
name: include-what-you-use (conda)
entry: cmake-pc-include-what-you-use-hook
description: Find unused include directives in C/CPP code
files: \.(c|c\+\+m|cc|ccm|cpp|cppm|cu|cxx|cxxm|h|hpp|hxx|ixx|m|mxx)$
language: conda
- id: lizard
name: lizard
entry: cmake-pc-lizard-hook
description: Code complexity analyzer for C/CPP/ObjC/...
files: \.(F|F03|F90|F95|c|c\+\+m|cc|ccm|cpp|cppm|cu|cuh|cxx|cxxm|f|f03|f90|f95|h|hh|hpp|hxx|ixx|mxx|py)$
language: python