|
7 | 7 | name: clang-format |
8 | 8 | entry: clang-format-hook |
9 | 9 | description: Formats C, C++, Objective-C, and Java code |
10 | | - files: \.(c|cc|cxx|cpp|h|hpp|hxx|m|mm|java)$ |
| 10 | + types_or: [c, c++, c#, objective-c, java] |
11 | 11 | language: python |
12 | 12 | - id: clang-tidy |
13 | 13 | name: clang-tidy |
14 | 14 | entry: clang-tidy-hook |
15 | 15 | description: Find warnings/errors in C, C++, and Objective-C code |
16 | | - files: \.(c|cc|cxx|cpp|h|hpp|hxx|m)$ |
| 16 | + types_or: [c, c++, c#, objective-c] |
17 | 17 | language: python |
18 | 18 | - id: oclint |
19 | 19 | name: oclint |
20 | 20 | entry: oclint-hook |
21 | 21 | description: Find warnings/errors in C, C++, and Objective-C code |
22 | | - files: \.(c|cc|cxx|cpp|h|hpp|hxx|m)$ |
| 22 | + types_or: [c, c++, c#, objective-c] |
23 | 23 | language: python |
24 | 24 | - id: uncrustify |
25 | 25 | name: uncrustify |
26 | 26 | entry: uncrustify-hook |
27 | 27 | description: Formats C, C++, Objective-C, Java, D, and Vala code |
28 | | - files: \.(c|cc|cxx|cpp|h|hpp|hxx|m|mm|d|java|vala)$ |
| 28 | + # D, vala currently aren't valid file types. See https://github.com/pre-commit/identify/issues/258 |
| 29 | + types_or: [c, c++, c#, objective-c, java] |
29 | 30 | language: python |
30 | 31 | - id: cppcheck |
31 | 32 | name: cppcheck |
32 | 33 | entry: cppcheck-hook |
33 | 34 | description: Find warnings/errors in C, C++, and Objective-C code |
34 | | - files: \.(c|cc|cxx|cpp|h|hpp|hxx|m)$ |
| 35 | + types_or: [c, c++, c#, objective-c] |
35 | 36 | language: python |
36 | 37 | - id: cpplint |
37 | 38 | name: cpplint |
38 | 39 | entry: cpplint-hook |
39 | 40 | description: Find warnings/errors in C/CPP code |
40 | | - files: \.(c|cc|cpp|cu|cuh|cxx|h|hh|hpp|hxx)$ |
| 41 | + types_or: [c, c++, c#, objective-c, cuda] |
41 | 42 | language: python |
42 | 43 | - id: include-what-you-use |
43 | 44 | name: include-what-you-use |
44 | 45 | entry: include-what-you-use-hook |
45 | 46 | description: Runs Include-What-You-Use (iwyu) in C/CPP code |
46 | | - files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$ |
| 47 | + types_or: [c, c++, c#, objective-c, cuda] |
47 | 48 | language: python |
0 commit comments