|
@@ -14,6 +14,7 @@
|
|
|
- id: check-symlinks
|
|
- id: check-symlinks
|
|
|
- id: check-added-large-files
|
|
- id: check-added-large-files
|
|
|
- repo: local
|
|
- repo: local
|
|
|
|
|
+
|
|
|
hooks:
|
|
hooks:
|
|
|
- id: copyright_checker
|
|
- id: copyright_checker
|
|
|
name: copyright_checker
|
|
name: copyright_checker
|
|
@@ -21,3 +22,19 @@
|
|
|
language: system
|
|
language: system
|
|
|
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$
|
|
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$
|
|
|
exclude: (?!.*third_party)^.*$
|
|
exclude: (?!.*third_party)^.*$
|
|
|
|
|
+
|
|
|
|
|
+ hooks:
|
|
|
|
|
+ - id: clang-format-with-version-check
|
|
|
|
|
+ name: clang-format
|
|
|
|
|
+ description: Format files with ClangFormat.
|
|
|
|
|
+ entry: bash ./tools/codestyle/clang_format.hook -i
|
|
|
|
|
+ language: system
|
|
|
|
|
+ files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$
|
|
|
|
|
+
|
|
|
|
|
+ hooks:
|
|
|
|
|
+ - id: cpplint-cpp-source
|
|
|
|
|
+ name: cpplint
|
|
|
|
|
+ description: Check C++ code style using cpplint.py.
|
|
|
|
|
+ entry: bash cpplint_pre_commit.hook
|
|
|
|
|
+ language: system
|
|
|
|
|
+ files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$
|