Static Check: Disable warnings on outdated copyright year
Outdated copyright year is allowed in the current strategy in TF-M.
Disable warnings on outdated copyright year to avoid any confusion.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I62ac09b7579fdb0403961daf2a5b6dc939368fba
diff --git a/script/static-checks/check-copyright.py b/script/static-checks/check-copyright.py
index 98961f9..d001135 100755
--- a/script/static-checks/check-copyright.py
+++ b/script/static-checks/check-copyright.py
@@ -86,9 +86,6 @@
if not copyright_line:
print("ERROR: Missing copyright in " + file_.name)
result = COPYRIGHT_ERROR
- elif CURRENT_YEAR not in copyright_line.group():
- print("WARNING: Copyright is out of date in " + file_.name + ": '" +
- copyright_line.group() + "'")
if not LICENSE_ID_PATTERN.search(file_content):
print("ERROR: License ID error in " + file_.name)