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/src/main/resources/copyright-template.txt | 16 ++++++++++++++++ checkstyle/src/main/resources/ignore-files-config.csv | 6 ++++++ .../src/main/resources/project-committers-config.csv | 3 +++ 3 files changed, 25 insertions(+) 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 (limited to 'checkstyle/src/main/resources') diff --git a/checkstyle/src/main/resources/copyright-template.txt b/checkstyle/src/main/resources/copyright-template.txt new file mode 100644 index 000000000..205e0caac --- /dev/null +++ b/checkstyle/src/main/resources/copyright-template.txt @@ -0,0 +1,16 @@ +============LICENSE_START======================================================= +================================================================================ +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +SPDX-License-Identifier: Apache-2.0 +============LICENSE_END========================================================= diff --git a/checkstyle/src/main/resources/ignore-files-config.csv b/checkstyle/src/main/resources/ignore-files-config.csv new file mode 100644 index 000000000..4f7394fbb --- /dev/null +++ b/checkstyle/src/main/resources/ignore-files-config.csv @@ -0,0 +1,6 @@ +file path +*checkstyle/* +*.json +*.yang +*.rst +*.csv \ No newline at end of file diff --git a/checkstyle/src/main/resources/project-committers-config.csv b/checkstyle/src/main/resources/project-committers-config.csv new file mode 100644 index 000000000..85ee43bda --- /dev/null +++ b/checkstyle/src/main/resources/project-committers-config.csv @@ -0,0 +1,3 @@ +email,signature +@est.tech,Nordix Foundation +@bell.ca,Bell Canada \ No newline at end of file -- cgit 1.2.3-korg