mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Suppress NullAnnotationsCheck for all files under src/test/ Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
37 lines
3.4 KiB
XML
37 lines
3.4 KiB
XML
<?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=".+[\\/]dto[\\/].+\.java" checks="JavadocType|JavadocVariable|JavadocMethod|MissingJavadocFilterCheck|NullAnnotationsCheck"/>
|
|
<suppress files=".+Impl\.java" checks="JavadocType|JavadocVariable|JavadocMethod|MissingJavadocFilterCheck"/>
|
|
<suppress files=".+[\\/]OH-INF[\\/].+\.xml" checks="OhInfXmlLabelCheck"/>
|
|
|
|
<!-- 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="OhInfXmlCheck"/>
|
|
<!-- NullAnnotationsCheck is not applied to test sources: ECJ cannot model the JUnit
|
|
@BeforeEach lifecycle, so @NonNullByDefault on test classes forces either inline
|
|
field initialization or pervasive @Nullable annotations - adding noise without
|
|
runtime safety benefit. -->
|
|
<suppress files=".+[\\/]src[\\/]test[\\/].+\.java" checks="NullAnnotationsCheck"/>
|
|
<!-- 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"/>
|
|
<!-- Allow the usage of scheduleAtFixedRate in the Astro handler -->
|
|
<suppress files=".+org.openhab.binding.astro.internal.handler.AstroThingHandler.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" />
|
|
<!-- Mail: Do not check org.apache.commons.mail usage -->
|
|
<suppress files=".+[\\/]mail[\\/].+[\\/]MailBuilder\.java" checks="ForbiddenPackageUsageCheck"/>
|
|
<suppress files=".+[\\/]mail[\\/].+[\\/]MailBuilderTest\.java" checks="ForbiddenPackageUsageCheck"/>
|
|
<suppress files=".+[\\/]mail[\\/].+[\\/]SMTPHandler\.java" checks="ForbiddenPackageUsageCheck"/>
|
|
<suppress files=".+[\\/]mail[\\/].+[\\/]SendMailActions\.java" checks="ForbiddenPackageUsageCheck"/>
|
|
</suppressions> |