Cleaned up PMD config
This commit is contained in:
parent
6451d45e7c
commit
b18a9f641c
5 changed files with 11 additions and 21 deletions
|
@ -36,6 +36,12 @@
|
||||||
<exclude name="UseUnderscoresInNumericLiterals"/>
|
<exclude name="UseUnderscoresInNumericLiterals"/>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="category/java/codestyle.xml/UnnecessaryImport">
|
||||||
|
<properties>
|
||||||
|
<property name="violationSuppressRegex" value="Unused (static|.*\.\*).*"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
|
||||||
<!-- DESIGN -->
|
<!-- DESIGN -->
|
||||||
<rule ref="category/java/design.xml">
|
<rule ref="category/java/design.xml">
|
||||||
<exclude name="AvoidCatchingGenericException"/>
|
<exclude name="AvoidCatchingGenericException"/>
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<FindBugsFilter
|
|
||||||
xmlns="https://github.com/spotbugs/filter/3.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
|
|
||||||
<!-- <Match>
|
|
||||||
<Package name="com.foobar.*"/>
|
|
||||||
<Class name="com.foobar.MyClass"/>
|
|
||||||
<Or>
|
|
||||||
<Method name="someMethod"/>
|
|
||||||
<Method name="someOtherMethod"/>
|
|
||||||
</Or>
|
|
||||||
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
|
|
||||||
<Confidence value="2"/>
|
|
||||||
</Match>-->
|
|
||||||
</FindBugsFilter>
|
|
|
@ -38,8 +38,8 @@ import org.junit.jupiter.api.Test;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals; // NOPMD
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue; // NOPMD
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>ConstantsTest</code> class.
|
* The <code>ConstantsTest</code> class.
|
||||||
|
|
|
@ -36,8 +36,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.util.Date; // NOPMD
|
import java.util.Date; // NOPMD
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals; // NOPMD
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue; // NOPMD
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>VersionInfoTest</code> class.
|
* The <code>VersionInfoTest</code> class.
|
||||||
|
|
|
@ -38,7 +38,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals; // NOPMD
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>VersionProcessorTest</code> class.
|
* The <code>VersionProcessorTest</code> class.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue