PMD Results
The following document contains the results of PMD 7.22.0.
Violations By Priority
Priority 1
io/github/olyutorskii/ghmvnlibtmpl/Resource.java
| Rule | Violation | Line |
|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 12 |
Priority 2
io/github/olyutorskii/ghmvnlibtmpl/Entry.java
| Rule | Violation | Line |
|---|---|---|
| SystemPrintln | Usage of System.out/err | 13 |
Priority 3
io/github/olyutorskii/ghmvnlibtmpl/Entry.java
| Rule | Violation | Line |
|---|---|---|
| UseUtilityClass | All methods are static. Consider adding a private no-args constructor to prevent instantiation. | 8 |
| CommentRequired | Class comments are required | 8 |
| CommentRequired | Public method and constructor comments are required | 10 |
io/github/olyutorskii/ghmvnlibtmpl/JavaDoc.java
| Rule | Violation | Line |
|---|---|---|
| FinalFieldCouldBeStatic | The final field field could be made static | 24 |
| UncommentedEmptyConstructor | Document empty constructor | 29 |
| UncommentedEmptyMethodBody | Document empty method body | 71–73 |
| UselessOverridingMethod | Overriding method merely calls super | 84 |
io/github/olyutorskii/ghmvnlibtmpl/Lib.java
| Rule | Violation | Line |
|---|---|---|
| CommentRequired | Class comments are required | 8 |
| AtLeastOneConstructor | Each class should declare at least one constructor | 8 |
| CommentRequired | Public method and constructor comments are required | 10 |
io/github/olyutorskii/ghmvnlibtmpl/Resource.java
| Rule | Violation | Line |
|---|---|---|
| CommentRequired | Class comments are required | 12 |
| CloseResource | Ensure that resources like this InputStream object are closed after use | 43 |
Priority 4
io/github/olyutorskii/ghmvnlibtmpl/Lib.java
| Rule | Violation | Line |
|---|---|---|
| ShortClassName | Avoid short class names like Lib | 8 |
Files
io/github/olyutorskii/ghmvnlibtmpl/Entry.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UseUtilityClass | All methods are static. Consider adding a private no-args constructor to prevent instantiation. | 3 | 8 |
| CommentRequired | Class comments are required | 3 | 8 |
| CommentRequired | Public method and constructor comments are required | 3 | 10 |
| SystemPrintln | Usage of System.out/err | 2 | 13 |
io/github/olyutorskii/ghmvnlibtmpl/JavaDoc.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| FinalFieldCouldBeStatic | The final field field could be made static | 3 | 24 |
| UncommentedEmptyConstructor | Document empty constructor | 3 | 29 |
| UncommentedEmptyMethodBody | Document empty method body | 3 | 71–73 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 84 |
io/github/olyutorskii/ghmvnlibtmpl/Lib.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ShortClassName | Avoid short class names like Lib | 4 | 8 |
| CommentRequired | Class comments are required | 3 | 8 |
| AtLeastOneConstructor | Each class should declare at least one constructor | 3 | 8 |
| CommentRequired | Public method and constructor comments are required | 3 | 10 |
io/github/olyutorskii/ghmvnlibtmpl/Resource.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CommentRequired | Class comments are required | 3 | 12 |
| ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 1 | 12 |
| CloseResource | Ensure that resources like this InputStream object are closed after use | 3 | 43 |
