PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 1

com/github/hypfvieh/java/java_runtime_compiler_maven_plugin/HelpMojo.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name 'string' doesn't match '_[a-z][a-zA-Z0-9]*' 163
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 168
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 168
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 174
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 174
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 189
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 189
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 204
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 204
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 219
FormalParameterNamingConventions The method parameter name 'goalPrefix' doesn't match '_[a-z][a-zA-Z0-9]*' 219
FormalParameterNamingConventions The method parameter name 'mojo' doesn't match '_[a-z][a-zA-Z0-9]*' 219
FormalParameterNamingConventions The method parameter name 'parameter' doesn't match '_[a-z][a-zA-Z0-9]*' 259
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 259
FormalParameterNamingConventions The method parameter name 'configurationElement' doesn't match '_[a-z][a-zA-Z0-9]*' 259
FormalParameterNamingConventions The method parameter name 'repeat' doesn't match '_[a-z][a-zA-Z0-9]*' 308
FormalParameterNamingConventions The method parameter name 'str' doesn't match '_[a-z][a-zA-Z0-9]*' 308
FormalParameterNamingConventions The method parameter name 'indent' doesn't match '_[a-z][a-zA-Z0-9]*' 328
FormalParameterNamingConventions The method parameter name 'description' doesn't match '_[a-z][a-zA-Z0-9]*' 328
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 328
FormalParameterNamingConventions The method parameter name 'indentSize' doesn't match '_[a-z][a-zA-Z0-9]*' 346
FormalParameterNamingConventions The method parameter name 'indent' doesn't match '_[a-z][a-zA-Z0-9]*' 346
FormalParameterNamingConventions The method parameter name 'text' doesn't match '_[a-z][a-zA-Z0-9]*' 346
FormalParameterNamingConventions The method parameter name 'lineLength' doesn't match '_[a-z][a-zA-Z0-9]*' 346
FormalParameterNamingConventions The method parameter name 'indentSize' doesn't match '_[a-z][a-zA-Z0-9]*' 370
FormalParameterNamingConventions The method parameter name 'lines' doesn't match '_[a-z][a-zA-Z0-9]*' 370
FormalParameterNamingConventions The method parameter name 'line' doesn't match '_[a-z][a-zA-Z0-9]*' 370
FormalParameterNamingConventions The method parameter name 'lineLength' doesn't match '_[a-z][a-zA-Z0-9]*' 370
FormalParameterNamingConventions The method parameter name 'line' doesn't match '_[a-z][a-zA-Z0-9]*' 419
FormalParameterNamingConventions The method parameter name 'expression' doesn't match '_[a-z][a-zA-Z0-9]*' 437

Priority 3

com/github/hypfvieh/java/java_runtime_compiler_maven_plugin/HelpMojo.java

Rule Violation Line
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 83–86
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 87–90
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 348
LinguisticNaming Linguistics Antipattern - The transform method 'toLines' should not return void linguistically 370–411

Priority 4

com/github/hypfvieh/java/java_runtime_compiler_maven_plugin/HelpMojo.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.String' due to existing implicit import 'java.lang.*' 43
UselessParentheses Useless parentheses. 229
UselessParentheses Useless parentheses. 278
UselessParentheses Useless parentheses. 290

Files

com/github/hypfvieh/java/java_runtime_compiler_maven_plugin/HelpMojo.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.String' due to existing implicit import 'java.lang.*' 4 43
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 83–86
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 87–90
FormalParameterNamingConventions The method parameter name 'string' doesn't match '_[a-z][a-zA-Z0-9]*' 1 163
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 168
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 1 168
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 1 174
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 174
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 189
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 1 189
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 191
FormalParameterNamingConventions The method parameter name 'elementName' doesn't match '_[a-z][a-zA-Z0-9]*' 1 204
FormalParameterNamingConventions The method parameter name 'node' doesn't match '_[a-z][a-zA-Z0-9]*' 1 204
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 1 219
FormalParameterNamingConventions The method parameter name 'goalPrefix' doesn't match '_[a-z][a-zA-Z0-9]*' 1 219
FormalParameterNamingConventions The method parameter name 'mojo' doesn't match '_[a-z][a-zA-Z0-9]*' 1 219
UselessParentheses Useless parentheses. 4 229
FormalParameterNamingConventions The method parameter name 'parameter' doesn't match '_[a-z][a-zA-Z0-9]*' 1 259
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 1 259
FormalParameterNamingConventions The method parameter name 'configurationElement' doesn't match '_[a-z][a-zA-Z0-9]*' 1 259
UselessParentheses Useless parentheses. 4 278
UselessParentheses Useless parentheses. 4 290
FormalParameterNamingConventions The method parameter name 'repeat' doesn't match '_[a-z][a-zA-Z0-9]*' 1 308
FormalParameterNamingConventions The method parameter name 'str' doesn't match '_[a-z][a-zA-Z0-9]*' 1 308
FormalParameterNamingConventions The method parameter name 'indent' doesn't match '_[a-z][a-zA-Z0-9]*' 1 328
FormalParameterNamingConventions The method parameter name 'description' doesn't match '_[a-z][a-zA-Z0-9]*' 1 328
FormalParameterNamingConventions The method parameter name 'sb' doesn't match '_[a-z][a-zA-Z0-9]*' 1 328
FormalParameterNamingConventions The method parameter name 'indentSize' doesn't match '_[a-z][a-zA-Z0-9]*' 1 346
FormalParameterNamingConventions The method parameter name 'indent' doesn't match '_[a-z][a-zA-Z0-9]*' 1 346
FormalParameterNamingConventions The method parameter name 'text' doesn't match '_[a-z][a-zA-Z0-9]*' 1 346
FormalParameterNamingConventions The method parameter name 'lineLength' doesn't match '_[a-z][a-zA-Z0-9]*' 1 346
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 348
FormalParameterNamingConventions The method parameter name 'indentSize' doesn't match '_[a-z][a-zA-Z0-9]*' 1 370
FormalParameterNamingConventions The method parameter name 'lines' doesn't match '_[a-z][a-zA-Z0-9]*' 1 370
FormalParameterNamingConventions The method parameter name 'line' doesn't match '_[a-z][a-zA-Z0-9]*' 1 370
LinguisticNaming Linguistics Antipattern - The transform method 'toLines' should not return void linguistically 3 370–411
FormalParameterNamingConventions The method parameter name 'lineLength' doesn't match '_[a-z][a-zA-Z0-9]*' 1 370
FormalParameterNamingConventions The method parameter name 'line' doesn't match '_[a-z][a-zA-Z0-9]*' 1 419
FormalParameterNamingConventions The method parameter name 'expression' doesn't match '_[a-z][a-zA-Z0-9]*' 1 437

Suppressed Violations

Filename Rule message Suppression type Reason
com/github/hypfvieh/java/maven/plugin/rtcompiler/ExecuteRtCompilerMojo.java Private field 'failOnError' could be made final; it is only initialized in the declaration or constructor. annotation