aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/copyright_checking.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/copyright_checking.py')
-rw-r--r--scripts/copyright_checking.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/copyright_checking.py b/scripts/copyright_checking.py
index 82099b22..6002e0fe 100644
--- a/scripts/copyright_checking.py
+++ b/scripts/copyright_checking.py
@@ -63,13 +63,11 @@ def check_copright_by_path(path, copyright_text, suffix):
file_path = os.path.join(root, file)
with open(file_path, 'r', encoding='utf-8') as f:
content = f.read()
-
if copyright_text not in content:
print(f"copyright declaration missing: {file_path}")
check_copright_by_path("src", copyright_text_source, ('.c', '.cpp', '.h', '.hpp'))
check_copright_by_path("test", copyright_text_source, ('.c', '.cpp', '.h', '.hpp'))
-
check_copright_by_path("src", copyright_text_script, ('.txt'))
check_copright_by_path("src", copyright_text_script, ('.txt'))
print("check done") \ No newline at end of file