From 165e3b8bcc492ebe31431f30c14d5dc98bb7f18e Mon Sep 17 00:00:00 2001 From: lukegleeson Date: Tue, 8 Mar 2022 11:41:52 +0000 Subject: Copyright Check Script - Prints warnings to build log if copyright issues detected - File ignore included for checkstyle folder and common extensions which don't have copyrights - Included Tests Issue-ID: CPS-911 Signed-off-by: lukegleeson Change-Id: Idbdd050af964335cc32218e3c11c77d4101f9ecd --- checkstyle/pom.xml | 54 +++ checkstyle/src/main/CopyrightCheck.py | 262 ++++++++++++ .../src/main/resources/copyright-template.txt | 16 + .../src/main/resources/ignore-files-config.csv | 6 + .../main/resources/project-committers-config.csv | 3 + checkstyle/src/main/test_CopyrightCheck.py | 441 +++++++++++++++++++++ 6 files changed, 782 insertions(+) create mode 100644 checkstyle/src/main/CopyrightCheck.py create mode 100644 checkstyle/src/main/resources/copyright-template.txt create mode 100644 checkstyle/src/main/resources/ignore-files-config.csv create mode 100644 checkstyle/src/main/resources/project-committers-config.csv create mode 100644 checkstyle/src/main/test_CopyrightCheck.py diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml index 07e6cf9663..185d9c33a4 100644 --- a/checkstyle/pom.xml +++ b/checkstyle/pom.xml @@ -2,6 +2,7 @@