Skip to content

Commit c6ecab7

Browse files
authored
Use pre-commit fork of clang-format instead of local (#813)
1 parent 6e46053 commit c6ecab7

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,10 @@ repos:
5858
args: ["--ignore=E501"]
5959

6060
# CPP hooks
61-
- repo: local
61+
- repo: https://github.com/pre-commit/mirrors-clang-format
62+
rev: v14.0.6
6263
hooks:
6364
- id: clang-format
64-
name: clang-format
65-
description: Format files with ClangFormat.
66-
entry: clang-format-14
67-
language: system
68-
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
69-
args: ['-fallback-style=none', '-i']
70-
# The same options as in ament_cppcheck are used, but its not working...
71-
#- repo: https://github.com/pocc/pre-commit-hooks
72-
#rev: v1.1.1
73-
#hooks:
74-
#- id: cppcheck
75-
#args: ['--error-exitcode=1', '-f', '--inline-suppr', '-q', '-rp', '--suppress=internalAstError', '--suppress=unknownMacro', '--verbose']
7665

7766
- repo: local
7867
hooks:

0 commit comments

Comments
 (0)