-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
31 lines (30 loc) · 1010 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: '^3rdparty|COPYING|\.gitmodules|^plugins/baseintegration/3rdparty/qxt|\.vcproj$|\.sln$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=1024']
- id: check-merge-conflict
- repo: https://github.com/doublify/pre-commit-clang-format
# for clang-tidy we can take github.com/pocc/pre-commit-hooks
rev: f4c4ac5948aff384af2b439bfabb2bdd65d2b3ac
hooks:
- id: clang-format
files: \.(cpp|h)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
#- repo: https://github.com/openstack-dev/bashate
# rev: 2.0.0
# hooks:
# - id: bashate
# args: ['--ignore', 'E006']