Skip to content

Commit 349d8a8

Browse files
authored
Add support for custom check in header checker (FreeRTOS#1285)
This allows derived classes to override customCheck method to inject additional checks for some files. This is currently needed to accept ARM copyright in ARMv8-M files - FreeRTOS#1147. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent 28a20d5 commit 349d8a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/scripts/common/header_checker.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ def isValidFile(self, path):
216216
print("PASS")
217217
print("-" * 85)
218218
return True
219+
elif self.customCheck(path):
220+
print("PASS")
221+
print("-" * 85)
222+
return True
219223
elif self.isThirdPartyFile(path):
220224
print("FAIL")
221225
print("-" * 85)
@@ -435,3 +439,6 @@ def validateSpdxLine(self, lines):
435439
else:
436440
error_count += 1
437441
return error_count == 0
442+
443+
def customCheck(self, path):
444+
return False

0 commit comments

Comments
 (0)