@@ -93,36 +93,25 @@ jobs:
93
93
--known-failure app/AttributeAccessInterface.h \
94
94
--known-failure app/AttributeAccessToken.h \
95
95
--known-failure app/att-storage.h \
96
- --known-failure app/BufferedReadCallback.h \
97
96
--known-failure app/CommandHandler.h \
98
97
--known-failure app/CommandHandlerInterface.h \
99
- --known-failure app/CommandPathParams.h \
100
- --known-failure app/CommandPathRegistry.h \
101
- --known-failure app/CommandResponseSender.h \
102
98
--known-failure app/CommandSender.h \
103
99
--known-failure app/CommandSenderLegacyCallback.h \
104
100
--known-failure app/CompatEnumNames.h \
105
- --known-failure app/ConcreteAttributePath.h \
106
- --known-failure app/ConcreteCommandPath.h \
107
101
--known-failure app/data-model/ListLargeSystemExtensions.h \
108
102
--known-failure app/EventHeader.h \
109
103
--known-failure app/EventLoggingDelegate.h \
110
104
--known-failure app/EventLogging.h \
111
105
--known-failure app/EventLoggingTypes.h \
112
- --known-failure app/EventManagement.h \
113
106
--known-failure app/InteractionModelHelper.h \
114
- --known-failure app/ObjectList.h \
115
107
--known-failure app/ReadClient.h \
116
108
--known-failure app/ReadHandler.h \
117
109
--known-failure app/ReadPrepareParams.h \
118
110
--known-failure app/reporting/tests/MockReportScheduler.cpp \
119
111
--known-failure app/reporting/tests/MockReportScheduler.h \
120
- --known-failure app/server/AppDelegate.h \
121
112
--known-failure app/TestEventTriggerDelegate.h \
122
- --known-failure app/util/af-enums.h \
123
113
--known-failure app/util/af.h \
124
114
--known-failure app/util/af-types.h \
125
- --known-failure app/util/attribute-metadata.h \
126
115
--known-failure app/util/attribute-storage.cpp \
127
116
--known-failure app/util/attribute-storage.h \
128
117
--known-failure app/util/attribute-storage-null-handling.h \
@@ -142,11 +131,7 @@ jobs:
142
131
--known-failure app/util/im-client-callbacks.h \
143
132
--known-failure app/util/MatterCallbacks.h \
144
133
--known-failure app/util/message.cpp \
145
- --known-failure app/util/mock/Constants.h \
146
- --known-failure app/util/mock/Functions.h \
147
- --known-failure app/util/mock/MockNodeConfig.h \
148
134
--known-failure app/util/odd-sized-integers.h \
149
- --known-failure app/util/types_stub.h \
150
135
--known-failure app/util/util.cpp \
151
136
--known-failure app/util/util.h \
152
137
--known-failure app/WriteClient.h \
@@ -197,23 +182,23 @@ jobs:
197
182
- name : Check for incorrect error use in VerifyOrExit
198
183
if : always()
199
184
run : |
200
- git grep -n "VerifyOrExit(.*, [A-Za-z]*_ERROR" -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
185
+ git grep -I - n "VerifyOrExit(.*, [A-Za-z]*_ERROR" -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
201
186
202
187
# git grep exits with 0 if it finds a match, but we want
203
188
# to fail (exit nonzero) on match. And we want to exclude this file,
204
189
# to avoid our grep regexp matching itself.
205
190
- name : Check for use of PRI*8, which are not supported on some libcs.
206
191
if : always()
207
192
run : |
208
- 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
193
+ 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
209
194
210
195
# git grep exits with 0 if it finds a match, but we want
211
196
# to fail (exit nonzero) on match. And we want to exclude this file,
212
197
# to avoid our grep regexp matching itself.
213
198
- name : Check for use of PRI*16, which are not supported on some libcs.
214
199
if : always()
215
200
run : |
216
- 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
201
+ 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
217
202
218
203
# git grep exits with 0 if it finds a match, but we want
219
204
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -226,7 +211,7 @@ jobs:
226
211
# TODO: TLVDebug should ideally not be excluded here.
227
212
# TODO: protocol_decoder.cpp should ideally not be excluded here.
228
213
# TODO: PersistentStorageMacros.h should ideally not be excluded here.
229
- 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
214
+ 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
230
215
231
216
# git grep exits with 0 if it finds a match, but we want
232
217
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -261,15 +246,15 @@ jobs:
261
246
- name : Check for use of 0x%u and the like, which lead to misleading output.
262
247
if : always()
263
248
run : |
264
- git grep -n '0x%[0-9l.-]*[^0-9lxX".-]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
249
+ git grep -I - n '0x%[0-9l.-]*[^0-9lxX".-]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
265
250
266
251
# git grep exits with 0 if it finds a match, but we want
267
252
# to fail (exit nonzero) on match. And we want to exclude this file,
268
253
# to avoid our grep regexp matching itself.
269
254
- name : Check for use of '"0x" PRIu*' and the like, which lead to misleading output.
270
255
if : always()
271
256
run : |
272
- git grep -n '0x%[0-9-]*" *PRI[^xX]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
257
+ git grep -I - n '0x%[0-9-]*" *PRI[^xX]' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
273
258
274
259
# git grep exits with 0 if it finds a match, but we want
275
260
# to fail (exit nonzero) on match.
@@ -285,7 +270,7 @@ jobs:
285
270
- name : Check for use of 'emberAfReadAttribute' instead of the type-safe getters
286
271
if : always()
287
272
run : |
288
- 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
273
+ 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
289
274
290
275
# git grep exits with 0 if it finds a match, but we want
291
276
# to fail (exit nonzero) on match. And we want to exclude this file,
@@ -295,7 +280,7 @@ jobs:
295
280
- name : Check for use of 'emberAfWriteAttribute' instead of the type-safe setters
296
281
if : always()
297
282
run : |
298
- 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
283
+ 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
299
284
300
285
# Run python Linter (flake8) and verify python files
301
286
# ignore some style errors, restyler should do that
@@ -310,12 +295,12 @@ jobs:
310
295
- name : Check for use of "SuccessOrExit(CHIP_ERROR_*)", which should probably be "SuccessOrExit(err = CHIP_ERROR_*)"
311
296
if : always()
312
297
run : |
313
- git grep -n 'SuccessOrExit(CHIP_ERROR' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
298
+ git grep -I - n 'SuccessOrExit(CHIP_ERROR' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
314
299
315
300
# git grep exits with 0 if it finds a match, but we want
316
301
# to fail (exit nonzero) on match. And we want to exclude this file,
317
302
# to avoid our grep regexp matching itself.
318
303
- name : Check for use of "SuccessOrExit(something-without-assignment(", which should probably be "SuccessOrExit(err = something("
319
304
if : always()
320
305
run : |
321
- git grep -n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
306
+ git grep -I - n 'SuccessOrExit([^=)]*(' -- './*' ':(exclude).github/workflows/lint.yml' && exit 1 || exit 0
0 commit comments