mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
devutils/lint_tests: fix license header check
This commit is contained in:
@@ -67,7 +67,7 @@ def c_all_new_files_have_license_header(root):
|
||||
continue
|
||||
|
||||
# TODO: convert into assert once all of them are resolved
|
||||
if any(map(lambda hunk: 'terms of the GPL-3.0 license' in str(hunk), file)):
|
||||
if not any(map(lambda hunk: 'terms of the GPL-3.0 license' in str(hunk), file)):
|
||||
print(
|
||||
f"File {file.path} was added in {patch}, but contains no Helium license header")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user