@@ -119,7 +119,6 @@ jobs:
119
119
--known-failure app/reporting/tests/MockReportScheduler.h \
120
120
--known-failure app/server/AppDelegate.h \
121
121
--known-failure app/TestEventTriggerDelegate.h \
122
- --known-failure app/util/af-enums.h \
123
122
--known-failure app/util/af.h \
124
123
--known-failure app/util/af-types.h \
125
124
--known-failure app/util/attribute-metadata.h \
@@ -137,7 +136,6 @@ jobs:
137
136
--known-failure app/util/ember-compatibility-functions.cpp \
138
137
--known-failure app/util/endpoint-config-api.h \
139
138
--known-failure app/util/endpoint-config-defines.h \
140
- --known-failure app/util/error-mapping.h \
141
139
--known-failure app/util/generic-callbacks.h \
142
140
--known-failure app/util/generic-callback-stubs.cpp \
143
141
--known-failure app/util/im-client-callbacks.h \
@@ -198,23 +196,23 @@ jobs:
198
196
- name : Check for incorrect error use in VerifyOrExit
199
197
if : always()
200
198
run : |
201
- git grep -n "VerifyOrExit(.*, [A-Za-z]*_ERROR" -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
199
+ git grep -I - n "VerifyOrExit(.*, [A-Za-z]*_ERROR" -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
202
200
203
201
# git grep exits with 0 if it finds a match, but we want
204
202
# to fail (exit nonzero) on match. And we want to exclude this file,
205
203
# to avoid our grep regexp matching itself.
206
204
- name : Check for use of PRI*8, which are not supported on some libcs.
207
205
if : always()
208
206
run : |
209
- git grep -n "PRI.8" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)third_party/lwip/repo/lwip/src/include/lwip/arch.h' && exit 1 || exit 0
207
+ 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
210
208
211
209
# git grep exits with 0 if it finds a match, but we want
212
210
# to fail (exit nonzero) on match. And we want to exclude this file,
213
211
# to avoid our grep regexp matching itself.
214
212
- name : Check for use of PRI*16, which are not supported on some libcs.
215
213
if : always()
216
214
run : |
217
- git grep -n "PRI.16" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)third_party/lwip/repo/lwip/src/include/lwip/arch.h' && exit 1 || exit 0
215
+ 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
218
216
219
217
# git grep exits with 0 if it finds a match, but we want
220
218
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -227,7 +225,7 @@ jobs:
227
225
# TODO: TLVDebug should ideally not be excluded here.
228
226
# TODO: protocol_decoder.cpp should ideally not be excluded here.
229
227
# TODO: PersistentStorageMacros.h should ideally not be excluded here.
230
- git grep -n "PRI.64" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)examples/chip-tool' ':(exclude)examples/tv-casting-app' ':(exclude)src/app/MessageDef/MessageDefHelper.cpp' ':(exclude)src/app/tests/integration/chip_im_initiator.cpp' ':(exclude)src/lib/core/TLVDebug.cpp' ':(exclude)src/lib/dnssd/tests/TestTxtFields.cpp' ':(exclude)src/lib/format/protocol_decoder.cpp' ':(exclude)src/lib/support/PersistentStorageMacros.h' ':(exclude)src/messaging/tests/echo/echo_requester.cpp' ':(exclude)src/platform/Linux' ':(exclude)src/platform/Ameba' ':(exclude)src/platform/ESP32' ':(exclude)src/platform/webos' ':(exclude)zzz_generated/chip-tool' ':(exclude)src/tools/chip-cert/Cmd_PrintCert.cpp' && exit 1 || exit 0
228
+ git grep -I - n "PRI.64" -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)examples/chip-tool' ':(exclude)examples/tv-casting-app' ':(exclude)src/app/MessageDef/MessageDefHelper.cpp' ':(exclude)src/app/tests/integration/chip_im_initiator.cpp' ':(exclude)src/lib/core/TLVDebug.cpp' ':(exclude)src/lib/dnssd/tests/TestTxtFields.cpp' ':(exclude)src/lib/format/protocol_decoder.cpp' ':(exclude)src/lib/support/PersistentStorageMacros.h' ':(exclude)src/messaging/tests/echo/echo_requester.cpp' ':(exclude)src/platform/Linux' ':(exclude)src/platform/Ameba' ':(exclude)src/platform/ESP32' ':(exclude)src/platform/webos' ':(exclude)zzz_generated/chip-tool' ':(exclude)src/tools/chip-cert/Cmd_PrintCert.cpp' && exit 1 || exit 0
231
229
232
230
# git grep exits with 0 if it finds a match, but we want
233
231
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -262,15 +260,15 @@ jobs:
262
260
- name : Check for use of 0x%u and the like, which lead to misleading output.
263
261
if : always()
264
262
run : |
265
- git grep -n '0x%[0-9l.-]*[^0-9lxX".-]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
263
+ git grep -I - n '0x%[0-9l.-]*[^0-9lxX".-]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
266
264
267
265
# git grep exits with 0 if it finds a match, but we want
268
266
# to fail (exit nonzero) on match. And we want to exclude this file,
269
267
# to avoid our grep regexp matching itself.
270
268
- name : Check for use of '"0x" PRIu*' and the like, which lead to misleading output.
271
269
if : always()
272
270
run : |
273
- git grep -n '0x%[0-9-]*" *PRI[^xX]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
271
+ git grep -I - n '0x%[0-9-]*" *PRI[^xX]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
274
272
275
273
# git grep exits with 0 if it finds a match, but we want
276
274
# to fail (exit nonzero) on match.
@@ -286,7 +284,7 @@ jobs:
286
284
- name : Check for use of 'emberAfReadAttribute' instead of the type-safe getters
287
285
if : always()
288
286
run : |
289
- git grep -n 'emberAfReadAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)src/app/util/af.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
287
+ git grep -I - n 'emberAfReadAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)src/app/util/af.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
290
288
291
289
# git grep exits with 0 if it finds a match, but we want
292
290
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -296,7 +294,7 @@ jobs:
296
294
- name : Check for use of 'emberAfWriteAttribute' instead of the type-safe setters
297
295
if : always()
298
296
run : |
299
- git grep -n 'emberAfWriteAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)src/app/util/af.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' ':(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
297
+ git grep -I - n 'emberAfWriteAttribute' -- './*' ':(exclude).github/workflows/lint.yml' ':(exclude)src/app/util/af.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' ':(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
300
298
301
299
# Run python Linter (flake8) and verify python files
302
300
# ignore some style errors, restyler should do that
@@ -311,12 +309,12 @@ jobs:
311
309
- name : Check for use of "SuccessOrExit(CHIP_ERROR_*)", which should probably be "SuccessOrExit(err = CHIP_ERROR_*)"
312
310
if : always()
313
311
run : |
314
- git grep -n 'SuccessOrExit(CHIP_ERROR' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
312
+ git grep -I - n 'SuccessOrExit(CHIP_ERROR' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
315
313
316
314
# git grep exits with 0 if it finds a match, but we want
317
315
# to fail (exit nonzero) on match. And we want to exclude this file,
318
316
# to avoid our grep regexp matching itself.
319
317
- name : Check for use of "SuccessOrExit(something-without-assignment(", which should probably be "SuccessOrExit(err = something("
320
318
if : always()
321
319
run : |
322
- git grep -n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
320
+ git grep -I - n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
0 commit comments