Skip to content

Commit 709eeb1

Browse files
committed
[git] change pre-commit clang-format argument
1 parent 5c9fb28 commit 709eeb1

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ repos:
44
hooks:
55
- id: clang-format
66
types_or: [c++, c]
7+
args: [-i,'-style={IndentWidth: 4, ColumnLimit: 0, BreakStringLiterals: false, ReflowComments: false}']
8+
exclude: "Platform/Core/CMSIS/"
79

810
- repo: https://github.com/pre-commit/pre-commit-hooks
911
rev: v4.4.0
1012
hooks:
1113
- id: trailing-whitespace
14+
exclude: "Platform/Core/CMSIS/"
1215
- id: end-of-file-fixer
16+
exclude: "Platform/Core/CMSIS/"
1317
- id: mixed-line-ending
14-
args: [--fix=no]
15-
- id: check-yaml
16-
args: [--allow-multiple-documents]
18+
args: [--fix=crlf]
19+
exclude: "Platform/Core/CMSIS/"
1720
- id: check-added-large-files
18-
- id: check-json
19-
- id: pretty-format-json
20-
args: [--autofix, --indent=4, --no-ensure-ascii, --no-sort-keys]
21-
- id: detect-private-key

0 commit comments

Comments
 (0)