23
23
workflow_dispatch :
24
24
25
25
concurrency :
26
- group : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
26
+ group :
27
+ ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
28
+ ' pull_request' && github.event.number) || (github.event_name ==
29
+ ' workflow_dispatch' && github.run_number) || github.sha }}
27
30
cancel-in-progress : true
28
31
29
32
jobs :
43
46
- name : Checkout submodules & Bootstrap
44
47
uses : ./.github/actions/checkout-submodules-and-bootstrap
45
48
with :
46
- platform : linux
49
+ platform : linux
47
50
48
51
- name : Check for orphaned gn files
49
52
if : always()
@@ -103,7 +106,6 @@ jobs:
103
106
--known-failure app/reporting/reporting.cpp \
104
107
--known-failure app/reporting/tests/MockReportScheduler.cpp \
105
108
--known-failure app/reporting/tests/MockReportScheduler.h \
106
- --known-failure app/TestEventTriggerDelegate.h \
107
109
--known-failure app/util/attribute-storage.cpp \
108
110
--known-failure app/util/attribute-storage.h \
109
111
--known-failure app/util/attribute-storage-detail.h \
@@ -174,23 +176,28 @@ jobs:
174
176
# git grep exits with 0 if it finds a match, but we want
175
177
# to fail (exit nonzero) on match. And we want to exclude this file,
176
178
# to avoid our grep regexp matching itself.
177
- - name : Check for use of PRI*8, which are not supported on some libcs.
179
+ - name :
180
+ Check for use of PRI*8, which are not supported on some libcs.
178
181
if : always()
179
182
run : |
180
183
git grep -I -n "PRI.8" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)third_party/lwip/repo/lwip/src/include/lwip/arch.h' && exit 1 || exit 0
181
184
182
185
# git grep exits with 0 if it finds a match, but we want
183
186
# to fail (exit nonzero) on match. And we want to exclude this file,
184
187
# to avoid our grep regexp matching itself.
185
- - name : Check for use of PRI*16, which are not supported on some libcs.
188
+ - name :
189
+ Check for use of PRI*16, which are not supported on some
190
+ libcs.
186
191
if : always()
187
192
run : |
188
193
git grep -I -n "PRI.16" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)third_party/lwip/repo/lwip/src/include/lwip/arch.h' && exit 1 || exit 0
189
194
190
195
# git grep exits with 0 if it finds a match, but we want
191
196
# to fail (exit nonzero) on match. And we want to exclude this file,
192
197
# to avoid our grep regexp matching itself.
193
- - name : Check for use of PRI*64, which are not supported on some libcs.
198
+ - name :
199
+ Check for use of PRI*64, which are not supported on some
200
+ libcs.
194
201
if : always()
195
202
run : |
196
203
# TODO: MessageDefHelper should ideally not be excluded here.
@@ -230,22 +237,28 @@ jobs:
230
237
# git grep exits with 0 if it finds a match, but we want
231
238
# to fail (exit nonzero) on match. And we want to exclude this file,
232
239
# to avoid our grep regexp matching itself.
233
- - name : Check for use of 0x%u and the like, which lead to misleading output.
240
+ - name :
241
+ Check for use of 0x%u and the like, which lead to misleading
242
+ output.
234
243
if : always()
235
244
run : |
236
245
git grep -I -n '0x%[0-9l.-]*[^0-9lxX".-]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
237
246
238
247
# git grep exits with 0 if it finds a match, but we want
239
248
# to fail (exit nonzero) on match. And we want to exclude this file,
240
249
# to avoid our grep regexp matching itself.
241
- - name : Check for use of '"0x" PRIu*' and the like, which lead to misleading output.
250
+ - name :
251
+ Check for use of '"0x" PRIu*' and the like, which lead to
252
+ misleading output.
242
253
if : always()
243
254
run : |
244
255
git grep -I -n '0x%[0-9-]*" *PRI[^xX]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
245
256
246
257
# git grep exits with 0 if it finds a match, but we want
247
258
# to fail (exit nonzero) on match.
248
- - name : Check for use of NSLog instead of Matter logging in Matter framework
259
+ - name :
260
+ Check for use of NSLog instead of Matter logging in Matter
261
+ framework
249
262
if : always()
250
263
run : |
251
264
git grep -n 'NSLog(' -- src/darwin/Framework/CHIP && exit 1 || exit 0
@@ -254,7 +267,9 @@ jobs:
254
267
# to fail (exit nonzero) on match. And we want to exclude this file,
255
268
# to avoid our grep regexp matching itself, as well as excluding the files
256
269
# that implement the type-safe accessors
257
- - name : Check for use of 'emberAfReadAttribute' instead of the type-safe getters
270
+ - name :
271
+ Check for use of 'emberAfReadAttribute' instead of the
272
+ type-safe getters
258
273
if : always()
259
274
run : |
260
275
git grep -I -n 'emberAfReadAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)src/app/util/attribute-table.h' ':(exclude)zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp' ':(exclude)src/app/zap-templates/templates/app/attributes/Accessors-src.zapt' ':(exclude)src/app/util/attribute-table.cpp' && exit 1 || exit 0
@@ -264,7 +279,9 @@ jobs:
264
279
# to avoid our grep regexp matching itself, as well as excluding the files
265
280
# that implement the type-safe accessors, attribute writing from the wire, and some
266
281
# Pigweed RPC code that seems hard to update.
267
- - name : Check for use of 'emberAfWriteAttribute' instead of the type-safe setters
282
+ - name :
283
+ Check for use of 'emberAfWriteAttribute' instead of the
284
+ type-safe setters
268
285
if : always()
269
286
run : |
270
287
git grep -I -n 'emberAfWriteAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp' ':(exclude)src/app/zap-templates/templates/app/attributes/Accessors-src.zapt' ':(exclude)src/app/util/attribute-table.cpp' ':(exclude)examples/common/pigweed/rpc_services/Attributes.h' ':(exclude)src/app/util/attribute-table.h' ':(exclude)src/app/util/ember-compatibility-functions.cpp' && exit 1 || exit 0
@@ -278,22 +295,29 @@ jobs:
278
295
# git grep exits with 0 if it finds a match, but we want
279
296
# to fail (exit nonzero) on match. And we want to exclude this file,
280
297
# to avoid our grep regexp matching itself.
281
- - name : Check for use of "SuccessOrExit(CHIP_ERROR_*)", which should probably be "SuccessOrExit(err = CHIP_ERROR_*)"
298
+ - name :
299
+ Check for use of "SuccessOrExit(CHIP_ERROR_*)", which should
300
+ probably be "SuccessOrExit(err = CHIP_ERROR_*)"
282
301
if : always()
283
302
run : |
284
303
git grep -I -n 'SuccessOrExit(CHIP_ERROR' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
285
304
286
305
# git grep exits with 0 if it finds a match, but we want
287
306
# to fail (exit nonzero) on match. And we want to exclude this file,
288
307
# to avoid our grep regexp matching itself.
289
- - name : Check for use of "SuccessOrExit(something-without-assignment(", which should probably be "SuccessOrExit(err = something("
308
+ - name :
309
+ Check for use of
310
+ " SuccessOrExit(something-without-assignment(" , which should
311
+ probably be "SuccessOrExit(err = something("
290
312
if : always()
291
313
run : |
292
314
git grep -I -n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
293
315
294
316
# git grep exits with 0 if it finds a match, but we want
295
317
# to fail (exit nonzero) on match.
296
- - name : Check for use of "using namespace" outside of a class/function in headers.
318
+ - name :
319
+ Check for use of "using namespace" outside of a class/function
320
+ in headers.
297
321
if : always()
298
322
run : |
299
323
# Various platforms have `using namespace chip::Ble` in their BLEManager* headers; just exclude those for now.
0 commit comments