|
@@ -12,7 +12,17 @@ repos:
|
|
rev: v19.1.0
|
|
rev: v19.1.0
|
|
hooks:
|
|
hooks:
|
|
- id: clang-format
|
|
- id: clang-format
|
|
- files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java|glsl)$
|
|
|
|
|
|
+ files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java)$
|
|
|
|
+ types_or: [text]
|
|
|
|
+ exclude: |
|
|
|
|
+ (?x)^(
|
|
|
|
+ tests/python_build/.*|
|
|
|
|
+ platform/android/java/editor/src/main/java/com/android/.*|
|
|
|
|
+ platform/android/java/lib/src/com/.*
|
|
|
|
+ )
|
|
|
|
+ - id: clang-format
|
|
|
|
+ name: clang-format-glsl
|
|
|
|
+ files: \.(glsl)$
|
|
types_or: [text]
|
|
types_or: [text]
|
|
exclude: |
|
|
exclude: |
|
|
(?x)^(
|
|
(?x)^(
|
|
@@ -20,6 +30,7 @@ repos:
|
|
platform/android/java/editor/src/main/java/com/android/.*|
|
|
platform/android/java/editor/src/main/java/com/android/.*|
|
|
platform/android/java/lib/src/com/.*
|
|
platform/android/java/lib/src/com/.*
|
|
)
|
|
)
|
|
|
|
+ args: ["-style=file:misc/utility/.clang-format-glsl"]
|
|
|
|
|
|
- repo: https://github.com/pocc/pre-commit-hooks
|
|
- repo: https://github.com/pocc/pre-commit-hooks
|
|
rev: v1.3.5
|
|
rev: v1.3.5
|