Fork me on GitHub

Checkstyle Results

The following document contains the results of Checkstyle 9.3 with file:/home/runner/work/DependencyCheck/DependencyCheck/src/main/config/checkstyle-checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
416 0 0 113

Details

org/owasp/dependencycheck/CliParser.java

Severity Category Rule Message Line
 Error whitespace WhitespaceAfter ',' is not followed by whitespace. 377
 Error javadoc JavadocStyle First sentence should end with a period. 1146

org/owasp/dependencycheck/analyzer/CarthageAnalyzer.java

Severity Category Rule Message Line
 Error javadoc JavadocMethod Expected @param tag for 'engine'. 192
 Error blocks RightCurly '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally). 213
 Error blocks RightCurly '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally). 227
 Error blocks RightCurly '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally). 234

org/owasp/dependencycheck/analyzer/PinnedMavenInstallAnalyzer.java

Severity Category Rule Message Line
 Error coding FinalLocalVariable Variable 'jsonNode' should be declared final. 126
 Error coding FinalLocalVariable Variable 'v2Version' should be declared final. 127
 Error coding FinalLocalVariable Variable 'v010Version' should be declared final. 128
 Error modifier RedundantModifier Redundant 'public' modifier. 328
 Error modifier RedundantModifier Redundant 'public' modifier. 332
 Error javadoc JavadocVariable Missing a Javadoc comment. 355
 Error javadoc JavadocVariable Missing a Javadoc comment. 356

org/owasp/dependencycheck/analyzer/YarnAuditAnalyzer.java

Severity Category Rule Message Line
 Error modifier RedundantModifier Redundant 'final' modifier. 283

org/owasp/dependencycheck/data/nodeaudit/NpmPayloadBuilder.java

Severity Category Rule Message Line
 Error coding FinalLocalVariable Variable 'depBuilder' should be declared final. 122
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 127

org/owasp/dependencycheck/data/nvdcve/CveDB.java

Severity Category Rule Message Line
 Error sizes FileLength File length is 2,346 lines (max allowed is 2,000). 1
 Error sizes MethodCount Total number of methods is 87 (max allowed is 80). 79
 Error sizes MethodLength Method getVulnerability length is 338 lines (max allowed is 180). 710
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 802
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 803
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 804
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 805
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 806
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 807
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 808
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 809
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 814
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 816
 Error coding FinalLocalVariable Variable 'version' should be declared final. 816
 Error sizes LineLength Line is longer than 150 characters (found 152). 1005
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1005
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1006
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1007
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1008
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1009
 Error sizes LineLength Line is longer than 150 characters (found 157). 1010
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1010
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1011
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1014
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1015
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1016
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1017
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1018
 Error sizes LineLength Line is longer than 150 characters (found 157). 1019
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1019
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1020
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1022
 Error coding FinalLocalVariable Variable 'source' should be declared final. 1023
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1029
 Error coding FinalLocalVariable Variable 'cvssv4' should be declared final. 1030
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1033
 Error sizes MethodLength Method updateOrInsertVulnerability length is 212 lines (max allowed is 180). 1170
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1186
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1187
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1188
 Error coding FinalLocalVariable Variable 'cvssv4' should be declared final. 1300
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 1996

org/owasp/dependencycheck/data/nvdcve/DatabaseManager.java

Severity Category Rule Message Line
 Error sizes LineLength Line is longer than 150 characters (found 151). 201

org/owasp/dependencycheck/data/nvdcve/DatabaseProperties.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - java.time.Instant. 20
 Error imports UnusedImports Unused import - java.time.ZoneId. 21

org/owasp/dependencycheck/data/nvdcve/H2Functions.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 236
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 237
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 238
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 239
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 248
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 377
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 378
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 428

org/owasp/dependencycheck/data/update/KnownExploitedDataSource.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - org.owasp.dependencycheck.utils.DateUtil. 32

org/owasp/dependencycheck/data/update/NvdApiDataSource.java

Severity Category Rule Message Line
 Error coding FinalLocalVariable Variable 'url' should be declared final. 141
 Error coding FinalLocalVariable Variable 'lastModifiedRequest' should be declared final. 222
 Error coding FinalLocalVariable Variable 'items' should be declared final. 352
 Error sizes LineLength Line is longer than 150 characters (found 169). 379
 Error sizes LineLength Line is longer than 150 characters (found 162). 383
 Error javadoc JavadocMethod Expected @param tag for 'pattern'. 595
 Error coding FinalLocalVariable Variable 'metaPattern' should be declared final. 606
 Error coding FinalLocalVariable Variable 'props' should be declared final. 615
 Error javadoc JavadocVariable Missing a Javadoc comment. 644
 Error javadoc JavadocVariable Missing a Javadoc comment. 646

org/owasp/dependencycheck/data/update/nvd/api/CveApiJson20CveItemSource.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error javadoc JavadocVariable Missing a Javadoc comment. 33
 Error javadoc JavadocVariable Missing a Javadoc comment. 34
 Error javadoc JavadocVariable Missing a Javadoc comment. 35
 Error javadoc JavadocVariable Missing a Javadoc comment. 36
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 38
 Error coding FinalLocalVariable Variable 'fieldName' should be declared final. 48
 Error coding EqualsAvoidNull String literal expressions should be on the left side of an equals comparison. 49

org/owasp/dependencycheck/data/update/nvd/api/CveItemSource.java

Severity Category Rule Message Line
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 26
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 28

org/owasp/dependencycheck/data/update/nvd/api/JsonArrayCveItemSource.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - org.apache.commons.io.IOUtils. 25
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error javadoc JavadocVariable Missing a Javadoc comment. 33
 Error javadoc JavadocVariable Missing a Javadoc comment. 34
 Error javadoc JavadocVariable Missing a Javadoc comment. 35
 Error javadoc JavadocVariable Missing a Javadoc comment. 36
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 38

org/owasp/dependencycheck/data/update/nvd/api/NvdApiProcessor.java

Severity Category Rule Message Line
 Error coding FinalLocalVariable Variable 'entry' should be declared final. 117

org/owasp/dependencycheck/dependency/Vulnerability.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 120
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 346

org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line matches the illegal pattern '\s+$'. 920

org/owasp/dependencycheck/processing/BundlerAuditProcessor.java

Severity Category Rule Message Line
 Error sizes LineLength Line is longer than 150 characters (found 160). 314
 Error javadoc JavadocMethod Expected @param tag for 'gemFile'. 314

org/owasp/dependencycheck/reporting/ReportGenerator.java

Severity Category Rule Message Line
 Error javadoc JavadocStyle First sentence should end with a period. 126
 Error sizes LineLength Line is longer than 150 characters (found 177). 129

org/owasp/dependencycheck/reporting/ReportTool.java

Severity Category Rule Message Line
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 125

org/owasp/dependencycheck/utils/Downloader.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - java.io.OutputStream. 25
 Error imports UnusedImports Unused import - java.util.zip.GZIPInputStream. 36
 Error coding FinalLocalVariable Variable 'buffer' should be declared final. 141
 Error whitespace WhitespaceAfter 'typecast' is not followed by whitespace. 144

org/owasp/dependencycheck/utils/Utils.java

Severity Category Rule Message Line
 Error coding FinalLocalVariable Variable 'runtimeVersion' should be declared final. 66
 Error coding FinalLocalVariable Variable 'parts' should be declared final. 79
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 121