From 835577e1477003789c392d8faab4a3bb8f4040ba Mon Sep 17 00:00:00 2001 From: Jakub Sujak Date: Mon, 27 Nov 2023 15:50:31 +0000 Subject: Check copyright for all files Signed-off-by: Jakub Sujak Change-Id: I654f53e5b4e53abc69ce385f6c706293bf8f7198 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10784 Benchmark: Arm Jenkins Reviewed-by: SiCong Li Tested-by: SiCong Li Comments-Addressed: Arm Jenkins --- scripts/format_code.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/format_code.py b/scripts/format_code.py index f1ee7a731c..29dbea7f0d 100755 --- a/scripts/format_code.py +++ b/scripts/format_code.py @@ -262,6 +262,9 @@ class FormatCodeRun: self.shell.prepend_env("PATH","%s/../bin" % this_dir) for f in self.files: + if not self.skip_copyright: + check_copyright(f) + skip_this_file = False for e in exceptions: if e in f: @@ -272,8 +275,6 @@ class FormatCodeRun: continue logger.info("Formatting %s" % f) - if not self.skip_copyright: - check_copyright(f) check_license("LICENSE") -- cgit v1.2.1