Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

com/github/searls/jasmine/NullLog.java

Violation Line
This class has too many methods, consider refactoring it. 373

com/github/searls/jasmine/coffee/HandlesRequestsForCoffee.java

Violation Line
The String literal "UTF-8" appears 4 times in this file; the first occurrence is on line 29 29

com/github/searls/jasmine/driver/WebDriverFactory.java

Violation Line
A method/constructor shouldnt explicitly throw java.lang.Exception 66
A method/constructor shouldnt explicitly throw java.lang.Exception 77
A method/constructor shouldnt explicitly throw java.lang.Exception 81
A method/constructor shouldnt explicitly throw java.lang.Exception 97
A method/constructor shouldnt explicitly throw java.lang.Exception 130
A method/constructor shouldnt explicitly throw java.lang.Exception 139

com/github/searls/jasmine/format/FormatsScriptTags.java

Violation Line
StringBuffer constructor is initialized with size 16, but has at least 53 characters appended. 8
Avoid appending characters as strings in StringBuffer.append. 10
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 10

com/github/searls/jasmine/mojo/AbstractJasmineMojo.java

Violation Line
Too many fields 25564
A method/constructor shouldnt explicitly throw java.lang.Exception 431

com/github/searls/jasmine/mojo/ServerMojo.java

Violation Line
A method/constructor shouldnt explicitly throw java.lang.Exception 55

com/github/searls/jasmine/mojo/TestMojo.java

Violation Line
A method/constructor shouldnt explicitly throw java.lang.Exception 190
A method/constructor shouldnt explicitly throw java.lang.Exception 227
A method/constructor shouldnt explicitly throw java.lang.Exception 242

com/github/searls/jasmine/runner/AbstractSpecRunnerHtmlGenerator.java

Violation Line
StringBuffer constructor is initialized with size 16, but has at least 54 characters appended. 34

com/github/searls/jasmine/runner/DefaultSpecRunnerHtmlGenerator.java

Violation Line
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 80

com/github/searls/jasmine/runner/HtmlGeneratorConfiguration.java

Violation Line
The class 'HtmlGeneratorConfiguration' has a Cyclomatic Complexity of 2 (Highest = 11). 11124
The class 'HtmlGeneratorConfiguration' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 11124
The class 'HtmlGeneratorConfiguration' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 11124
The method 'equals' has a Standard Cyclomatic Complexity of 10. 7994
The method 'equals' has a Modified Cyclomatic Complexity of 10. 7994
The method 'equals' has a Cyclomatic Complexity of 11. 7994
Avoid using if statements without curly braces 80
Avoid using if statements without curly braces 81
Avoid using if statements without curly braces 8586
Avoid using if statements without curly braces 87
Avoid using if statements without curly braces 8889
Avoid using if statements without curly braces 9091
The method hashCode() has an NPath complexity of 625 97103

com/github/searls/jasmine/server/ServerManager.java

Violation Line
A method/constructor shouldnt explicitly throw java.lang.Exception 22
A method/constructor shouldnt explicitly throw java.lang.Exception 26
A method/constructor shouldnt explicitly throw java.lang.Exception 30
A method/constructor shouldnt explicitly throw java.lang.Exception 41
A method/constructor shouldnt explicitly throw java.lang.Exception 45

com/github/searls/jasmine/thirdpartylibs/WebJarResourceHandler.java

Violation Line
String.indexOf(char) is faster than String.indexOf(String). 56
Avoid empty catch blocks 6365
Avoid empty catch blocks 6365