Package io.gitlab.ntduycse.convention
Class PmdConvention
java.lang.Object
io.gitlab.ntduycse.convention.PmdConvention
Spring Quickstart defaults for the Gradle
pmd plugin (built-in quality plugin).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInclusive lower bound onpmdRulesMinPriority.static final intInclusive upper bound onpmdRulesMinPriority.static final StringClasspath location of PMD's ruleset (undersrc/main/resourcesin this project). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(org.gradle.api.Project project, SpringQuickstartExtension devkit) ConfiguresPmdExtensionwith DevKit defaults.
-
Field Details
-
RULESET_RESOURCE_PATH
Classpath location of PMD's ruleset (undersrc/main/resourcesin this project). Consumer projects do not need a copy; the ruleset ships inside the DevKit plugin jar.- See Also:
-
PMD_MIN_PRIORITY_LOWER_BOUND
public static final int PMD_MIN_PRIORITY_LOWER_BOUNDInclusive lower bound onpmdRulesMinPriority.- See Also:
-
PMD_MIN_PRIORITY_UPPER_BOUND
public static final int PMD_MIN_PRIORITY_UPPER_BOUNDInclusive upper bound onpmdRulesMinPriority.- See Also:
-
-
Method Details
-
configure
ConfiguresPmdExtensionwith DevKit defaults. Rule selection and exclusions are defined only in the bundled "io/gitlab/ntduycse/pmd/rulesets.xml" file.- Parameters:
project- the projectdevkit- the devkit extension
-