Codebase as of c53e4aed26 as an initial commit for the shrunk repo
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
5
tools/static-code-analysis/checkstyle/ruleset.properties
Normal file
5
tools/static-code-analysis/checkstyle/ruleset.properties
Normal file
@@ -0,0 +1,5 @@
|
||||
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,2020
|
||||
checkstyle.forbiddenPackageUsageCheck.forbiddenPackages=com.google.common,gnu.io,javax.comm,org.apache.commons,org.joda.time
|
||||
checkstyle.forbiddenPackageUsageCheck.exceptions=
|
||||
checkstyle.requiredFilesCheck.files=pom.xml
|
||||
23
tools/static-code-analysis/checkstyle/suppressions.xml
Normal file
23
tools/static-code-analysis/checkstyle/suppressions.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
|
||||
<suppressions>
|
||||
<!-- These suppressions define which files to be suppressed for which checks. -->
|
||||
<suppress files=".+[\\/]internal[\\/].+\.java" checks="JavadocType|JavadocVariable|JavadocMethod|MissingJavadocFilterCheck"/>
|
||||
<suppress files=".+DTO\.java" checks="JavadocType|JavadocVariable|JavadocMethod|MissingJavadocFilterCheck|NullAnnotationsCheck" />
|
||||
<suppress files=".+Impl\.java" checks="JavadocType|JavadocVariable|JavadocMethod|MissingJavadocFilterCheck"/>
|
||||
|
||||
<!-- Homematic and Tellstick bindings are creating and configuring things dynamically, they will log false positives for unused configuration -->
|
||||
<!-- IO and Voice bundles have specific use cases - they use only the config .xml files and will log false positives as well -->
|
||||
<suppress files=".+org.openhab.binding.homematic.+|.+org.openhab.binding.tellstick.+|.+org.openhab.io.+|.+org.openhab.voice.+" checks="EshInfXmlCheck"/>
|
||||
<!-- Some checks will be supressed for test bundles -->
|
||||
<suppress files=".+.test[\\/].+" checks="RequireBundleCheck"/>
|
||||
<!-- There is a single class inside org.openhab.voice.voicerss.tool, which is meant to be called from the command line.
|
||||
Moving it to "internal" is also not ideal as it is a documented tool. -->
|
||||
<suppress files=".+org.openhab.voice.voicerss.+" checks="PackageExportsNameCheck"/>
|
||||
<!-- Allow the usage of scheduleAtFixedRate in FadingWiFiLEDDriver class -->
|
||||
<suppress files=".+org.openhab.binding.wifiled.handler.FadingWiFiLEDDriver.java" checks="AvoidScheduleAtFixedRateCheck"/>
|
||||
<suppress files=".+[\\/]pom\.xml" checks="OnlyTabIndentationCheck|OnlyTabIndentationInXmlFilesCheck"/>
|
||||
<suppress files=".+org.openhab.binding.yeelight.+" checks="OutsideOfLibExternalLibrariesCheck" />
|
||||
<!-- suppress header checks for imported and patched apache commons-io files in logreader binding -->
|
||||
<suppress files=".+org.openhab.binding.logreader.internal.thirdparty.commonsio.+" checks="ParameterizedRegexpHeaderCheck|AuthorTagCheck" />
|
||||
</suppressions>
|
||||
Reference in New Issue
Block a user