@@ -4,8 +4,10 @@ default_language_version:
4
4
exclude : |
5
5
(?x)^(
6
6
.*thirdparty/.*|
7
- .*-so_wrap\.(h|c)$
8
- )
7
+ .*-so_wrap\.(h|c)|
8
+ platform/android/java/editor/src/main/java/com/android/.*|
9
+ platform/android/java/lib/src/com/google/.*
10
+ )$
9
11
10
12
repos :
11
13
- repo : https://github.com/pre-commit/mirrors-clang-format
@@ -14,23 +16,13 @@ repos:
14
16
- id : clang-format
15
17
files : \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java)$
16
18
types_or : [text]
17
- exclude : |
18
- (?x)^(
19
- tests/python_build/.*|
20
- platform/android/java/editor/src/main/java/com/android/.*|
21
- platform/android/java/lib/src/com/.*
22
- )
19
+ exclude : ^tests/python_build/.*
23
20
- id : clang-format
24
21
name : clang-format-glsl
25
22
files : \.glsl$
26
23
types_or : [text]
27
- exclude : |
28
- (?x)^(
29
- tests/python_build/.*|
30
- platform/android/java/editor/src/main/java/com/android/.*|
31
- platform/android/java/lib/src/com/.*
32
- )
33
- args : ['-style=file:misc/utility/.clang-format-glsl']
24
+ exclude : ^tests/python_build/.*
25
+ args : [-style=file:misc/utility/clang_format_glsl.yml]
34
26
35
27
- repo : https://github.com/pocc/pre-commit-hooks
36
28
rev : v1.3.5
@@ -39,12 +31,7 @@ repos:
39
31
files : \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java|glsl)$
40
32
args : [--fix, --quiet, --use-color]
41
33
types_or : [text]
42
- exclude : |
43
- (?x)^(
44
- tests/python_build/.*|
45
- platform/android/java/editor/src/main/java/com/android/.*|
46
- platform/android/java/lib/src/com/.*
47
- )
34
+ exclude : ^tests/python_build/.*
48
35
additional_dependencies : [clang-tidy==19.1.0]
49
36
require_serial : true
50
37
stages : [manual] # Not automatically triggered, invoked via `pre-commit run --hook-stage manual clang-tidy`
@@ -71,11 +58,6 @@ repos:
71
58
rev : v2.3.0
72
59
hooks :
73
60
- id : codespell
74
- exclude : |
75
- (?x)^(
76
- platform/android/java/editor/src/main/java/com/android/.*|
77
- platform/android/java/lib/src/com/.*
78
- )
79
61
additional_dependencies : [tomli]
80
62
81
63
# ## Requires Docker; look into alternative implementation.
@@ -118,10 +100,10 @@ repos:
118
100
- --config
119
101
- platform/web/eslint.config.cjs
120
102
additional_dependencies :
121
- - ' @eslint/js@^9.3.0'
122
- - ' @html-eslint/eslint-plugin@^0.24.1'
123
- - ' @html-eslint/parser@^0.24.1'
124
- - ' @stylistic/eslint-plugin@^2.1.0'
103
+ - " @eslint/js@^9.3.0"
104
+ - " @html-eslint/eslint-plugin@^0.24.1"
105
+ - " @html-eslint/parser@^0.24.1"
106
+ - " @stylistic/eslint-plugin@^2.1.0"
125
107
- eslint@^9.3.0
126
108
- eslint-plugin-html@^8.1.1
127
109
- globals@^15.3.0
@@ -139,7 +121,7 @@ repos:
139
121
- platform/web/js/engine/config.js
140
122
- platform/web/js/engine/features.js
141
123
- --destination
142
- - ' '
124
+ - " "
143
125
- -d
144
126
- dry-run
145
127
pass_filenames : false
@@ -160,14 +142,12 @@ repos:
160
142
files : \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java)$
161
143
exclude : |
162
144
(?x)^(
163
- core/math/bvh_.*\.inc$ |
145
+ core/math/bvh_.*\.inc|
164
146
platform/(?!android|ios|linuxbsd|macos|web|windows)\w+/.*|
165
- platform/android/java/editor/src/main/java/com/android/.*|
166
- platform/android/java/lib/src/com/.*|
167
- platform/android/java/lib/src/org/godotengine/godot/gl/GLSurfaceView\.java$|
168
- platform/android/java/lib/src/org/godotengine/godot/gl/EGLLogWrapper\.java$|
169
- platform/android/java/lib/src/org/godotengine/godot/utils/ProcessPhoenix\.java$
170
- )
147
+ platform/android/java/lib/src/org/godotengine/godot/gl/GLSurfaceView\.java|
148
+ platform/android/java/lib/src/org/godotengine/godot/gl/EGLLogWrapper\.java|
149
+ platform/android/java/lib/src/org/godotengine/godot/utils/ProcessPhoenix\.java
150
+ )$
171
151
172
152
- id : header-guards
173
153
name : header-guards
@@ -183,17 +163,15 @@ repos:
183
163
types_or : [text]
184
164
exclude : |
185
165
(?x)^(
186
- .*\.test\.txt$|
187
- .*\.svg$|
188
- .*\.patch$|
189
- .*\.out$|
190
- modules/gdscript/tests/scripts/parser/features/mixed_indentation_on_blank_lines\.gd$|
191
- modules/gdscript/tests/scripts/parser/warnings/empty_file_newline_comment\.norun\.gd$|
192
- modules/gdscript/tests/scripts/parser/warnings/empty_file_newline\.norun\.gd$|
193
- platform/android/java/editor/src/main/java/com/android/.*|
194
- platform/android/java/lib/src/com/google/.*|
195
- tests/data/.*\.bin$
196
- )
166
+ .*\.test\.txt|
167
+ .*\.svg|
168
+ .*\.patch|
169
+ .*\.out|
170
+ modules/gdscript/tests/scripts/parser/features/mixed_indentation_on_blank_lines\.gd|
171
+ modules/gdscript/tests/scripts/parser/warnings/empty_file_newline_comment\.norun\.gd|
172
+ modules/gdscript/tests/scripts/parser/warnings/empty_file_newline\.norun\.gd|
173
+ tests/data/.*\.bin
174
+ )$
197
175
198
176
- id : dotnet-format
199
177
name : dotnet-format
0 commit comments