Cleaned up PMD config

This commit is contained in:
Erik C. Thauvin 2023-08-19 11:56:23 -07:00
parent 6451d45e7c
commit b18a9f641c
5 changed files with 11 additions and 21 deletions

View file

@ -36,6 +36,12 @@
<exclude name="UseUnderscoresInNumericLiterals"/>
</rule>
<rule ref="category/java/codestyle.xml/UnnecessaryImport">
<properties>
<property name="violationSuppressRegex" value="Unused (static|.*\.\*).*"/>
</properties>
</rule>
<!-- DESIGN -->
<rule ref="category/java/design.xml">
<exclude name="AvoidCatchingGenericException"/>

View file

@ -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>

View file

@ -38,8 +38,8 @@ import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals; // NOPMD
import static org.junit.jupiter.api.Assertions.assertTrue; // NOPMD
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* The <code>ConstantsTest</code> class.

View file

@ -36,8 +36,8 @@ import org.junit.jupiter.api.Test;
import java.util.Date; // NOPMD
import static org.junit.jupiter.api.Assertions.assertEquals; // NOPMD
import static org.junit.jupiter.api.Assertions.assertTrue; // NOPMD
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* The <code>VersionInfoTest</code> class.

View file

@ -38,7 +38,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
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.