From 671f926883758a5a2e24bbc1191645bbfd95e909 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 14 Mar 2019 20:20:40 +0100 Subject: [PATCH] Resolve SAT errors (#36) Signed-off-by: Wouter Born --- org.openhab.ui.dashboard/pom.xml | 4 +-- org.openhab.ui.habot/build.properties | 15 ---------- org.openhab.ui.paper/build.properties | 20 ------------- tools/checkstyle_suppressions.xml | 29 ------------------- .../checkstyle/ruleset.properties} | 6 ++-- .../checkstyle/suppressions.xml | 16 ++++++++++ .../pmd/suppressions.properties | 0 .../spotbugs/suppressions.xml | 29 +++++++++++++++++++ 8 files changed, 50 insertions(+), 69 deletions(-) delete mode 100644 org.openhab.ui.habot/build.properties delete mode 100644 org.openhab.ui.paper/build.properties delete mode 100644 tools/checkstyle_suppressions.xml rename tools/{checkstyle.properties => static-code-analysis/checkstyle/ruleset.properties} (89%) create mode 100644 tools/static-code-analysis/checkstyle/suppressions.xml create mode 100644 tools/static-code-analysis/pmd/suppressions.properties create mode 100644 tools/static-code-analysis/spotbugs/suppressions.xml diff --git a/org.openhab.ui.dashboard/pom.xml b/org.openhab.ui.dashboard/pom.xml index ea3ffc6d4..27aea76ef 100644 --- a/org.openhab.ui.dashboard/pom.xml +++ b/org.openhab.ui.dashboard/pom.xml @@ -3,8 +3,8 @@ 4.0.0 - org.openhab.core.bundles - org.openhab.core.reactor.bundles + org.openhab.ui + pom 2.5.0-SNAPSHOT diff --git a/org.openhab.ui.habot/build.properties b/org.openhab.ui.habot/build.properties deleted file mode 100644 index c71384b8b..000000000 --- a/org.openhab.ui.habot/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -bin.includes = META-INF/,\ - .,\ - NOTICE,\ - ESH-INF/,\ - OSGI-INF/,\ - lib/,\ - lib/opennlp-tools-1.8.3.jar,\ - lib/bcprov-jdk15on-154.jar,\ - lib/jose4j-0.6.3.jar,\ - web/dist/pwa-mat/ -output = target/classes/ -source.. = src/main/java/,\ - src/main/resources/ -src.excludes = src/test/java/\ - src/test/resources/ diff --git a/org.openhab.ui.paper/build.properties b/org.openhab.ui.paper/build.properties deleted file mode 100644 index bea70070e..000000000 --- a/org.openhab.ui.paper/build.properties +++ /dev/null @@ -1,20 +0,0 @@ -output.. = target/classes/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - NOTICE,\ - web/css/,\ - web/fonts/,\ - web/img/,\ - web/index.html,\ - web/js/,\ - web/partials/ -source.. = src/main/java/ -bin.excludes = web/fonts/Roboto-Thin.woff,\ - web/fonts/Roboto-ThinItalic.woff,\ - web/fonts/Roboto-RegularItalic.woff,\ - web/fonts/Roboto-MediumItalic.woff,\ - web/fonts/Roboto-LightItalic.woff,\ - web/fonts/Roboto-BoldItalic.woff,\ - web/fonts/Roboto-BlackItalic.woff,\ - web/fonts/Roboto-Black.woff diff --git a/tools/checkstyle_suppressions.xml b/tools/checkstyle_suppressions.xml deleted file mode 100644 index 2ffb023b8..000000000 --- a/tools/checkstyle_suppressions.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tools/checkstyle.properties b/tools/static-code-analysis/checkstyle/ruleset.properties similarity index 89% rename from tools/checkstyle.properties rename to tools/static-code-analysis/checkstyle/ruleset.properties index 8aab41c93..41e0dc233 100644 --- a/tools/checkstyle.properties +++ b/tools/static-code-analysis/checkstyle/ruleset.properties @@ -1,6 +1,6 @@ +checkstyle.forbiddenPackageUsageCheck.exceptions= +checkstyle.forbiddenPackageUsageCheck.forbiddenPackages=com.google.common checkstyle.headerCheck.content=^/\\*\\*$\\n^ \\* Copyright \\(c\\) {0}-{1} Contributors to the openHAB project$\\n^ \\*$\\n^ \\* See the NOTICE file\\(s\\) distributed with this work for additional$\\n^ \\* information.$\\n^ \\*$\\n^ \\* This program and the accompanying materials are made available under the$\\n^ \\* terms of the Eclipse Public License 2\\.0 which is available at$\\n^ \\* http://www.eclipse.org/legal/epl\\-2\\.0$\\n^ \\*$\\n^ \\* SPDX-License-Identifier: EPL-2.0$ checkstyle.headerCheck.values=2010,2019 checkstyle.pomXmlCheck.currentVersionRegex=^2\.5\.0 -checkstyle.forbiddenPackageUsageCheck.forbiddenPackages=com.google.common -checkstyle.forbiddenPackageUsageCheck.exceptions= -checkstyle.requiredFilesCheck.files=build.properties,pom.xml,META-INF/MANIFEST.MF +checkstyle.requiredFilesCheck.files=pom.xml diff --git a/tools/static-code-analysis/checkstyle/suppressions.xml b/tools/static-code-analysis/checkstyle/suppressions.xml new file mode 100644 index 000000000..3d99ecd0a --- /dev/null +++ b/tools/static-code-analysis/checkstyle/suppressions.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/tools/static-code-analysis/pmd/suppressions.properties b/tools/static-code-analysis/pmd/suppressions.properties new file mode 100644 index 000000000..e69de29bb diff --git a/tools/static-code-analysis/spotbugs/suppressions.xml b/tools/static-code-analysis/spotbugs/suppressions.xml new file mode 100644 index 000000000..bb11da72a --- /dev/null +++ b/tools/static-code-analysis/spotbugs/suppressions.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +