mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
Fix header checker when copyright regex is None (#843)
Allow header_checker.py to work as it did before when no copyright regex is defined.
This commit is contained in:
parent
2808e48079
commit
3693b3e8c9
1 changed files with 4 additions and 1 deletions
5
.github/scripts/common/header_checker.py
vendored
5
.github/scripts/common/header_checker.py
vendored
|
@ -72,7 +72,10 @@ class HeaderChecker:
|
|||
self.padding = padding
|
||||
self.header = header
|
||||
|
||||
self.copyright_regex = re.compile(copyright_regex)
|
||||
if copyright_regex:
|
||||
self.copyright_regex = re.compile(copyright_regex)
|
||||
else:
|
||||
self.copyright_regex = None
|
||||
|
||||
# Construct mutated header for assembly files
|
||||
self.asm_header = [";" + line for line in header]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue