Package com.qulice.pmd.rules
package com.qulice.pmd.rules
PMD custom rules.
- Since:
- 0.4
-
ClassesClassDescriptionRule to flag
AutoCloseableexpressions that are created inline and then consumed by another expression instead of a resource boundary.Rule to check that a method does not take too many parameters.Rule to flag an interface that is implicitly functional (declares exactly one abstract method) but is not annotated with@FunctionalInterface.Rule to flag redundantString.format(...)calls passed as arguments tocom.jcabi.log.Loggermethods.Rule to check plain assertions in JUnit tests.Rule to check that a class does not declare too many fields.Rule to check that a class does not expose too many methods.Rule to check that JUnit/TestNG test methods do not contain more than one assertion.Rule to check that JUnit/TestNG test methods contain at least one assertion.Rule to check unnecessary local variables.Rule to flagArrays.asListinvocations that are passed a single non-array argument.Rule to prohibit use of String.length() when checking for empty string.