mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 16:57:41 -04:00
Add support for custom check in header checker (#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 - https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1147. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
28a20d5a69
commit
349d8a87d4
1 changed files with 7 additions and 0 deletions
7
.github/scripts/common/header_checker.py
vendored
7
.github/scripts/common/header_checker.py
vendored
|
@ -216,6 +216,10 @@ class HeaderChecker:
|
||||||
print("PASS")
|
print("PASS")
|
||||||
print("-" * 85)
|
print("-" * 85)
|
||||||
return True
|
return True
|
||||||
|
elif self.customCheck(path):
|
||||||
|
print("PASS")
|
||||||
|
print("-" * 85)
|
||||||
|
return True
|
||||||
elif self.isThirdPartyFile(path):
|
elif self.isThirdPartyFile(path):
|
||||||
print("FAIL")
|
print("FAIL")
|
||||||
print("-" * 85)
|
print("-" * 85)
|
||||||
|
@ -435,3 +439,6 @@ class HeaderChecker:
|
||||||
else:
|
else:
|
||||||
error_count += 1
|
error_count += 1
|
||||||
return error_count == 0
|
return error_count == 0
|
||||||
|
|
||||||
|
def customCheck(self, path):
|
||||||
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue