-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (32 loc) · 1020 Bytes
/
.pre-commit-config.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: requirements-txt-fixer
- repo: local
hooks:
- id: clang-format
name: clang-format
description: Format C code using clang-format.
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
entry: clang-format -i
args: ["-style=Google"]
- id: cpplint
name: cpplint
description: Check style of C code using cpplint.
language: python
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
entry: cpplint
args: ["--verbose=1", "--filter=-legal/copyright"]
- id: cppcheck
name: cppcheck
description: Check correctness of C code using cppcheck.
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
entry: cppcheck --error-exitcode=1
args: ["--enable=warning"]