-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (51 loc) · 1.89 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
51 lines (51 loc) · 1.89 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
exclude: '\.expected^'
- id: end-of-file-fixer
exclude: '\.expected^'
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'ad270fb9db427f956ce8eb50c74617ed117b9bfc'
hooks:
- id: clang-format
- repo: https://github.com/pocc/pre-commit-hooks
rev: '336fdd7c3cab698ead0b1c95157b9e74d3906b62'
hooks:
- id: cppcheck
args: [
"--platform=unix64",
"--language=c++",
"--inline-suppr",
"--suppressions-list=cppcheck-suppressions.txt",
"--check-level=exhaustive",
"--force",
"-Iinclude",
"-j", "8",
"--cppcheck-build-dir=cache-cppcheck"
]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 'v3.2.0'
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [
"--force-scope",
"build", # Changes that affect the build system or external dependencies
"chore",
"ci", # Changes to our CI configuration files and scripts
"docs", # Documentation only changes
"feat", # A new feature
"fix", # A bug fix
"perf", # A code change that improves performance
"refactor", # A code change that neither fixes a bug nor adds a feature
"revert",
"style", # Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc)
"test", # Adding missing tests or correcting existing tests
"release", # Release a new version
"asset", # Modify project assets
"config" # Changes that affect project config or tooling (scripts, git config, pre-commit...)
]