From 81bd9991bb94c29893e299a3aaf2b2f01e4195b2 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 27 Apr 2014 09:31:16 -0400 Subject: [PATCH] moved checkstyle configuration to match pmd Former-commit-id: 63681c165564341bfff2579ef6eb2f8cd502bb45 --- .../config/checkstyle-suppressions.xml | 9 - dependency-check-ant/pom.xml | 6 +- .../config/checkstyle-checks.xml | 223 ------------------ .../config/checkstyle-header.txt | 18 -- .../config/checkstyle-suppressions.xml | 9 - dependency-check-cli/pom.xml | 6 +- .../config/checkstyle-checks.xml | 223 ------------------ .../config/checkstyle-header.txt | 18 -- dependency-check-core/pom.xml | 6 +- .../config/checkstyle-checks.xml | 223 ------------------ .../config/checkstyle-header.txt | 18 -- .../config/checkstyle-suppressions.xml | 10 - dependency-check-maven/pom.xml | 6 +- .../main}/config/checkstyle-checks.xml | 0 .../main}/config/checkstyle-header.txt | 2 +- .../main}/config/checkstyle-suppressions.xml | 0 16 files changed, 13 insertions(+), 764 deletions(-) delete mode 100644 dependency-check-ant/config/checkstyle-suppressions.xml delete mode 100644 dependency-check-cli/config/checkstyle-checks.xml delete mode 100644 dependency-check-cli/config/checkstyle-header.txt delete mode 100644 dependency-check-cli/config/checkstyle-suppressions.xml delete mode 100644 dependency-check-core/config/checkstyle-checks.xml delete mode 100644 dependency-check-core/config/checkstyle-header.txt delete mode 100644 dependency-check-maven/config/checkstyle-checks.xml delete mode 100644 dependency-check-maven/config/checkstyle-header.txt delete mode 100644 dependency-check-maven/config/checkstyle-suppressions.xml rename {dependency-check-ant => src/main}/config/checkstyle-checks.xml (100%) rename {dependency-check-ant => src/main}/config/checkstyle-header.txt (91%) rename {dependency-check-core => src/main}/config/checkstyle-suppressions.xml (100%) diff --git a/dependency-check-ant/config/checkstyle-suppressions.xml b/dependency-check-ant/config/checkstyle-suppressions.xml deleted file mode 100644 index 2427e9d73..000000000 --- a/dependency-check-ant/config/checkstyle-suppressions.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/dependency-check-ant/pom.xml b/dependency-check-ant/pom.xml index 3349b0b34..8a47f278c 100644 --- a/dependency-check-ant/pom.xml +++ b/dependency-check-ant/pom.xml @@ -398,9 +398,9 @@ Copyright (c) 2013 - Jeremy Long. All Rights Reserved. 2.11 false - ${basedir}/config/checkstyle-checks.xml - ${basedir}/config/checkstyle-header.txt - ${basedir}/config/checkstyle-suppressions.xml + ${basedir}/../src/main/config/checkstyle-checks.xml + ${basedir}/../src/main/config/checkstyle-header.txt + ${basedir}/../src/main/config/checkstyle-suppressions.xml checkstyle.suppressions.file diff --git a/dependency-check-cli/config/checkstyle-checks.xml b/dependency-check-cli/config/checkstyle-checks.xml deleted file mode 100644 index 7f316c27a..000000000 --- a/dependency-check-cli/config/checkstyle-checks.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dependency-check-cli/config/checkstyle-header.txt b/dependency-check-cli/config/checkstyle-header.txt deleted file mode 100644 index bc95a5800..000000000 --- a/dependency-check-cli/config/checkstyle-header.txt +++ /dev/null @@ -1,18 +0,0 @@ -^/\*\s*$ -^ \* This file is part of dependency-check-cli\.\s*$ -^ \*\s*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);\s*$ -^ \* you may not use this file except in compliance with the License.\s*$ -^ \* You may obtain a copy of the License at\s*$ -^ \*\s*$ -^ \*\s*http://www.apache.org/licenses/LICENSE-2\.0\s*$ -^ \*\s*$ -^ \* Unless required by applicable law or agreed to in writing, software\s*$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,\s*$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\s*$ -^ \* See the License for the specific language governing permissions and\s*$ -^ \* limitations under the License\.\s*$ -^ \*\s*$ -^ \* Copyright \(c\) 201[234] (Jeremy Long|Steve Springett)\. All Rights Reserved\.\s*$ -^ \*/\s*$ -^package diff --git a/dependency-check-cli/config/checkstyle-suppressions.xml b/dependency-check-cli/config/checkstyle-suppressions.xml deleted file mode 100644 index 2427e9d73..000000000 --- a/dependency-check-cli/config/checkstyle-suppressions.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/dependency-check-cli/pom.xml b/dependency-check-cli/pom.xml index 59f69e1d9..02f567dcc 100644 --- a/dependency-check-cli/pom.xml +++ b/dependency-check-cli/pom.xml @@ -248,9 +248,9 @@ Copyright (c) 2012 - Jeremy Long. All Rights Reserved. 2.11 false - ${basedir}/config/checkstyle-checks.xml - ${basedir}/config/checkstyle-header.txt - ${basedir}/config/checkstyle-suppressions.xml + ${basedir}/../src/main/config/checkstyle-checks.xml + ${basedir}/../src/main/config/checkstyle-header.txt + ${basedir}/../src/main/config/checkstyle-suppressions.xml checkstyle.suppressions.file diff --git a/dependency-check-core/config/checkstyle-checks.xml b/dependency-check-core/config/checkstyle-checks.xml deleted file mode 100644 index 7f316c27a..000000000 --- a/dependency-check-core/config/checkstyle-checks.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dependency-check-core/config/checkstyle-header.txt b/dependency-check-core/config/checkstyle-header.txt deleted file mode 100644 index 6cda6c2c4..000000000 --- a/dependency-check-core/config/checkstyle-header.txt +++ /dev/null @@ -1,18 +0,0 @@ -^/\*\s*$ -^ \* This file is part of dependency-check-core\.\s*$ -^ \*\s*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);\s*$ -^ \* you may not use this file except in compliance with the License.\s*$ -^ \* You may obtain a copy of the License at\s*$ -^ \*\s*$ -^ \*\s*http://www.apache.org/licenses/LICENSE-2\.0\s*$ -^ \*\s*$ -^ \* Unless required by applicable law or agreed to in writing, software\s*$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,\s*$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\s*$ -^ \* See the License for the specific language governing permissions and\s*$ -^ \* limitations under the License\.\s*$ -^ \*\s*$ -^ \* Copyright \(c\) 201[234] (Jeremy Long|Steve Springett)\. All Rights Reserved\.\s*$ -^ \*/\s*$ -^package diff --git a/dependency-check-core/pom.xml b/dependency-check-core/pom.xml index 27b3b9d1c..748d78a81 100644 --- a/dependency-check-core/pom.xml +++ b/dependency-check-core/pom.xml @@ -348,9 +348,9 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. 2.11 false - ${basedir}/config/checkstyle-checks.xml - ${basedir}/config/checkstyle-header.txt - ${basedir}/config/checkstyle-suppressions.xml + ${basedir}/../src/main/config/checkstyle-checks.xml + ${basedir}/../src/main/config/checkstyle-header.txt + ${basedir}/../src/main/config/checkstyle-suppressions.xml checkstyle.suppressions.file diff --git a/dependency-check-maven/config/checkstyle-checks.xml b/dependency-check-maven/config/checkstyle-checks.xml deleted file mode 100644 index 7f316c27a..000000000 --- a/dependency-check-maven/config/checkstyle-checks.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dependency-check-maven/config/checkstyle-header.txt b/dependency-check-maven/config/checkstyle-header.txt deleted file mode 100644 index 514e8798c..000000000 --- a/dependency-check-maven/config/checkstyle-header.txt +++ /dev/null @@ -1,18 +0,0 @@ -^/\*\s*$ -^ \* This file is part of dependency-check-maven\.\s*$ -^ \*\s*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);\s*$ -^ \* you may not use this file except in compliance with the License.\s*$ -^ \* You may obtain a copy of the License at\s*$ -^ \*\s*$ -^ \*\s*http://www.apache.org/licenses/LICENSE-2\.0\s*$ -^ \*\s*$ -^ \* Unless required by applicable law or agreed to in writing, software\s*$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,\s*$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\s*$ -^ \* See the License for the specific language governing permissions and\s*$ -^ \* limitations under the License\.\s*$ -^ \*\s*$ -^ \* Copyright \(c\) 201[234] (Jeremy Long|Steve Springett)\. All Rights Reserved\.\s*$ -^ \*/\s*$ -^package diff --git a/dependency-check-maven/config/checkstyle-suppressions.xml b/dependency-check-maven/config/checkstyle-suppressions.xml deleted file mode 100644 index 8faf40832..000000000 --- a/dependency-check-maven/config/checkstyle-suppressions.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/dependency-check-maven/pom.xml b/dependency-check-maven/pom.xml index 75512d518..3b6e83e40 100644 --- a/dependency-check-maven/pom.xml +++ b/dependency-check-maven/pom.xml @@ -224,9 +224,9 @@ Copyright (c) 2013 Jeremy Long. All Rights Reserved. 2.11 false - ${basedir}/config/checkstyle-checks.xml - ${basedir}/config/checkstyle-header.txt - ${basedir}/config/checkstyle-suppressions.xml + ${basedir}/../src/main/config/checkstyle-checks.xml + ${basedir}/../src/main/config/checkstyle-header.txt + ${basedir}/../src/main/config/checkstyle-suppressions.xml checkstyle.suppressions.file diff --git a/dependency-check-ant/config/checkstyle-checks.xml b/src/main/config/checkstyle-checks.xml similarity index 100% rename from dependency-check-ant/config/checkstyle-checks.xml rename to src/main/config/checkstyle-checks.xml diff --git a/dependency-check-ant/config/checkstyle-header.txt b/src/main/config/checkstyle-header.txt similarity index 91% rename from dependency-check-ant/config/checkstyle-header.txt rename to src/main/config/checkstyle-header.txt index a51628ef2..042e0d16c 100644 --- a/dependency-check-ant/config/checkstyle-header.txt +++ b/src/main/config/checkstyle-header.txt @@ -1,5 +1,5 @@ ^/\*\s*$ -^ \* This file is part of dependency-check-ant\.\s*$ +^ \* This file is part of dependency-check-(ant|core|cli|maven)\.\s*$ ^ \*\s*$ ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);\s*$ ^ \* you may not use this file except in compliance with the License.\s*$ diff --git a/dependency-check-core/config/checkstyle-suppressions.xml b/src/main/config/checkstyle-suppressions.xml similarity index 100% rename from dependency-check-core/config/checkstyle-suppressions.xml rename to src/main/config/checkstyle-suppressions.xml