Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.3.0.

Violations By Priority

Priority 3

org/codehaus/gmavenplus/model/GroovyCompileConfiguration.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'groovyVersion'. 20

org/codehaus/gmavenplus/mojo/AbstractGroovyMojo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 267–269

org/codehaus/gmavenplus/mojo/ConsoleMojo.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1–246

org/codehaus/gmavenplus/mojo/GroovyDocJarMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 143–145

org/codehaus/gmavenplus/mojo/GroovyDocTestsJarMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 143–145

org/codehaus/gmavenplus/mojo/ShellMojo.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1–163

org/codehaus/gmavenplus/util/ClassWrangler.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 74–76
EmptyCatchBlock Avoid empty catch blocks 87–89

org/codehaus/gmavenplus/util/FileUtils.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 69–71
EmptyCatchBlock Avoid empty catch blocks 84–86
EmptyCatchBlock Avoid empty catch blocks 99–101
EmptyCatchBlock Avoid empty catch blocks 114–116

org/codehaus/gmavenplus/util/GroovyCompiler.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 666–668

Priority 4

org/codehaus/gmavenplus/mojo/AbstractGroovyDocMojo.java

Rule Violation Line
UnnecessaryImport Unused import 'org.apache.maven.shared.model.fileset.util.FileSetManager' 5
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.file': 'Files' is already in scope because it is imported in this file 342

org/codehaus/gmavenplus/util/ReflectionUtils.java

Rule Violation Line
UselessParentheses Useless parentheses. 102

org/codehaus/gmavenplus/gmavenplus_plugin/HelpMojo.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'String' is already in scope because it is declared in java.lang 43

Files

org/codehaus/gmavenplus/model/GroovyCompileConfiguration.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'groovyVersion'. 3 20

org/codehaus/gmavenplus/mojo/AbstractGroovyDocMojo.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.apache.maven.shared.model.fileset.util.FileSetManager' 4 5
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.file': 'Files' is already in scope because it is imported in this file 4 342

org/codehaus/gmavenplus/mojo/AbstractGroovyMojo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 267–269

org/codehaus/gmavenplus/mojo/ConsoleMojo.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1–246

org/codehaus/gmavenplus/mojo/GroovyDocJarMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 143–145

org/codehaus/gmavenplus/mojo/GroovyDocTestsJarMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 143–145

org/codehaus/gmavenplus/mojo/ShellMojo.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1–163

org/codehaus/gmavenplus/util/ClassWrangler.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 74–76
EmptyCatchBlock Avoid empty catch blocks 3 87–89

org/codehaus/gmavenplus/util/FileUtils.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 69–71
EmptyCatchBlock Avoid empty catch blocks 3 84–86
EmptyCatchBlock Avoid empty catch blocks 3 99–101
EmptyCatchBlock Avoid empty catch blocks 3 114–116

org/codehaus/gmavenplus/util/GroovyCompiler.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 666–668

org/codehaus/gmavenplus/util/ReflectionUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 102

org/codehaus/gmavenplus/gmavenplus_plugin/HelpMojo.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'String' is already in scope because it is declared in java.lang 4 43