diff --git a/devutils/_lint_tests.py b/devutils/_lint_tests.py index 0334166a..886dcf99 100644 --- a/devutils/_lint_tests.py +++ b/devutils/_lint_tests.py @@ -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")