-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
29 lines (29 loc) · 1.05 KB
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
# Python-only
- id: check-ast
- id: debug-statements
# Checkers
- id: check-case-conflict
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
# Auto-formatters
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace # Should go before end-of-file-fixer.
- id: end-of-file-fixer
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [-i]
- id: cppcheck
args: [--language=c++, --std=c++11, --library=googletest, --inline-suppr, --enable=all]
- id: cpplint
args: ['--filter=-build/c++11,-build/namespace,-readability/namespace,-readability/nolint,-whitespace/braces,-whitespace/indent,-whitespace/line_length,-whitespace/newline,-whitespace/semicolon']
- id: clang-tidy
entry: scripts/pocc-shim.py