... |
... |
@@ -39,9 +39,8 @@ eslint: |
39
|
39
|
# The plugin implementing custom checks.
|
40
|
40
|
- 'tools/lint/eslint/eslint-plugin-mozilla/**'
|
41
|
41
|
- 'tools/lint/eslint/eslint-plugin-spidermonkey-js/**'
|
42
|
|
- # Run job whenever a new tag is created
|
43
|
|
- # or whenever a commit is merged to a protected branch
|
44
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
42
|
+ # Run job whenever a commit is merged to a protected branch
|
|
43
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
45
|
44
|
|
46
|
45
|
stylelint:
|
47
|
46
|
extends: .base
|
... |
... |
@@ -59,9 +58,8 @@ stylelint: |
59
|
58
|
# Run when stylelint policies change.
|
60
|
59
|
- '**/.stylelintignore'
|
61
|
60
|
- '**/*stylelintrc*'
|
62
|
|
- # Run job whenever a new tag is created
|
63
|
|
- # or whenever a commit is merged to a protected branch
|
64
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
61
|
+ # Run job whenever a commit is merged to a protected branch
|
|
62
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
65
|
63
|
|
66
|
64
|
py-black:
|
67
|
65
|
extends: .base
|
... |
... |
@@ -80,9 +78,8 @@ py-black: |
80
|
78
|
- '**/*.mozbuild'
|
81
|
79
|
- 'pyproject.toml'
|
82
|
80
|
- 'tools/lint/black.yml'
|
83
|
|
- # Run job whenever a new tag is created
|
84
|
|
- # or whenever a commit is merged to a protected branch
|
85
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
81
|
+ # Run job whenever a commit is merged to a protected branch
|
|
82
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
86
|
83
|
|
87
|
84
|
py-ruff:
|
88
|
85
|
extends: .base
|
... |
... |
@@ -101,9 +98,8 @@ py-ruff: |
101
|
98
|
- 'tools/lint/ruff.yml'
|
102
|
99
|
- 'tools/lint/python/ruff.py'
|
103
|
100
|
- 'tools/lint/python/ruff_requirements.txt'
|
104
|
|
- # Run job whenever a new tag is created
|
105
|
|
- # or whenever a commit is merged to a protected branch
|
106
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
101
|
+ # Run job whenever a commit is merged to a protected branch
|
|
102
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
107
|
103
|
|
108
|
104
|
yaml:
|
109
|
105
|
extends: .base
|
... |
... |
@@ -118,9 +114,8 @@ yaml: |
118
|
114
|
- '**/*.yml'
|
119
|
115
|
- '**/*.yaml'
|
120
|
116
|
- '**/.ymllint'
|
121
|
|
- # Run job whenever a new tag is created
|
122
|
|
- # or whenever a commit is merged to a protected branch
|
123
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
117
|
+ # Run job whenever a commit is merged to a protected branch
|
|
118
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
124
|
119
|
|
125
|
120
|
shellcheck:
|
126
|
121
|
extends: .base
|
... |
... |
@@ -134,9 +129,8 @@ shellcheck: |
134
|
129
|
#
|
135
|
130
|
- '**/*.sh'
|
136
|
131
|
- 'tools/lint/shellcheck.yml'
|
137
|
|
- # Run job whenever a new tag is created
|
138
|
|
- # or whenever a commit is merged to a protected branch
|
139
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
132
|
+ # Run job whenever a commit is merged to a protected branch
|
|
133
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
140
|
134
|
|
141
|
135
|
clang-format:
|
142
|
136
|
extends: .base
|
... |
... |
@@ -156,9 +150,8 @@ clang-format: |
156
|
150
|
- '**/*.m'
|
157
|
151
|
- '**/*.mm'
|
158
|
152
|
- 'tools/lint/clang-format.yml'
|
159
|
|
- # Run job whenever a new tag is created
|
160
|
|
- # or whenever a commit is merged to a protected branch
|
161
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
153
|
+ # Run job whenever a commit is merged to a protected branch
|
|
154
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
162
|
155
|
|
163
|
156
|
rustfmt:
|
164
|
157
|
extends: .base
|
... |
... |
@@ -172,9 +165,8 @@ rustfmt: |
172
|
165
|
#
|
173
|
166
|
- '**/*.rs'
|
174
|
167
|
- 'tools/lint/rustfmt.yml'
|
175
|
|
- # Run job whenever a new tag is created
|
176
|
|
- # or whenever a commit is merged to a protected branch
|
177
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
168
|
+ # Run job whenever a commit is merged to a protected branch
|
|
169
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
178
|
170
|
|
179
|
171
|
fluent-lint:
|
180
|
172
|
extends: .base
|
... |
... |
@@ -189,9 +181,8 @@ fluent-lint: |
189
|
181
|
- '**/*.ftl'
|
190
|
182
|
- 'tools/lint/fluent-lint.yml'
|
191
|
183
|
- 'tools/lint/fluent-lint/exclusions.yml'
|
192
|
|
- # Run job whenever a new tag is created
|
193
|
|
- # or whenever a commit is merged to a protected branch
|
194
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
184
|
+ # Run job whenever a commit is merged to a protected branch
|
|
185
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
195
|
186
|
|
196
|
187
|
localization:
|
197
|
188
|
extends: .base
|
... |
... |
@@ -208,9 +199,8 @@ localization: |
208
|
199
|
- 'third_party/python/compare-locales/**'
|
209
|
200
|
- 'third_party/python/fluent/**'
|
210
|
201
|
- 'tools/lint/l10n.yml'
|
211
|
|
- # Run job whenever a new tag is created
|
212
|
|
- # or whenever a commit is merged to a protected branch
|
213
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
202
|
+ # Run job whenever a commit is merged to a protected branch
|
|
203
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
214
|
204
|
|
215
|
205
|
mingw-capitalization:
|
216
|
206
|
extends: .base
|
... |
... |
@@ -227,9 +217,8 @@ mingw-capitalization: |
227
|
217
|
- '**/*.c'
|
228
|
218
|
- '**/*.h'
|
229
|
219
|
- 'tools/lint/mingw-capitalization.yml'
|
230
|
|
- # Run job whenever a new tag is created
|
231
|
|
- # or whenever a commit is merged to a protected branch
|
232
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
220
|
+ # Run job whenever a commit is merged to a protected branch
|
|
221
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
233
|
222
|
|
234
|
223
|
mscom-init:
|
235
|
224
|
extends: .base
|
... |
... |
@@ -246,9 +235,8 @@ mscom-init: |
246
|
235
|
- '**/*.c'
|
247
|
236
|
- '**/*.h'
|
248
|
237
|
- 'tools/lint/mscom-init.yml'
|
249
|
|
- # Run job whenever a new tag is created
|
250
|
|
- # or whenever a commit is merged to a protected branch
|
251
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
238
|
+ # Run job whenever a commit is merged to a protected branch
|
|
239
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
252
|
240
|
|
253
|
241
|
file-whitespace:
|
254
|
242
|
extends: .base
|
... |
... |
@@ -277,9 +265,8 @@ file-whitespace: |
277
|
265
|
- '**/*.webidl'
|
278
|
266
|
- '**/*.xhtml'
|
279
|
267
|
- 'tools/lint/file-whitespace.yml'
|
280
|
|
- # Run job whenever a new tag is created
|
281
|
|
- # or whenever a commit is merged to a protected branch
|
282
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
268
|
+ # Run job whenever a commit is merged to a protected branch
|
|
269
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
283
|
270
|
|
284
|
271
|
test-manifest:
|
285
|
272
|
extends: .base
|
... |
... |
@@ -294,9 +281,8 @@ test-manifest: |
294
|
281
|
- '**/*.ini'
|
295
|
282
|
- 'python/mozlint/**'
|
296
|
283
|
- 'tools/lint/**'
|
297
|
|
- # Run job whenever a new tag is created
|
298
|
|
- # or whenever a commit is merged to a protected branch
|
299
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
|
|
284
|
+ # Run job whenever a commit is merged to a protected branch
|
|
285
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true'
|
300
|
286
|
|
301
|
287
|
trojan-source:
|
302
|
288
|
extends: .base
|
... |
... |
@@ -315,6 +301,5 @@ trojan-source: |
315
|
301
|
- '**/*.py'
|
316
|
302
|
- '**/*.rs'
|
317
|
303
|
- 'tools/lint/trojan-source.yml'
|
318
|
|
- # Run job whenever a new tag is created
|
319
|
|
- # or whenever a commit is merged to a protected branch
|
320
|
|
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true' |
|
304
|
+ # Run job whenever a commit is merged to a protected branch
|
|
305
|
+ - if: $CI_COMMIT_REF_PROTECTED == 'true' |