Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

Files Infos Infos Warnings Warnings Errors Errors
10 7 18 66

Rules

Rules Violations Severity
JavadocPackage 1 Errors Error
Translation 0 Errors Error
FileLength 0 Errors Error
FileTabCharacter
  • eachLine: "true"
0 Errors Error
RegexpSingleline
  • message: "Line has trailing spaces."
  • format: "\s+$"
11 Warnings Warning
AnnotationUseStyle 0 Errors Error
MissingDeprecated 0 Errors Error
MissingOverride
  • javaFiveCompatibility: "true"
0 Errors Error
PackageAnnotation 0 Errors Error
JavadocMethod
  • excludeScope: "private"
  • scope: "anoninner"
6 Errors Error
JavadocType
  • scope: "package"
12 Errors Error
JavadocVariable
  • scope: "package"
3 Errors Error
JavadocStyle
  • scope: "package"
0 Errors Error
ConstantName 1 Errors Error
LocalFinalVariableName 0 Errors Error
LocalVariableName 0 Errors Error
MemberName 0 Errors Error
MethodName 0 Errors Error
PackageName 0 Errors Error
ParameterName 0 Errors Error
StaticVariableName 0 Errors Error
TypeName 0 Errors Error
AvoidStarImport 0 Errors Error
IllegalImport 0 Errors Error
ImportOrder
  • separated: "true"
  • groups: "java,javax,com.atlassian,com,org"
20 Errors Error
RedundantImport 0 Errors Error
UnusedImports 2 Errors Error
LineLength
  • max: "120"
7 Warnings Warning
MethodLength 0 Errors Error
ParameterNumber 0 Errors Error
EmptyForIteratorPad 0 Errors Error
MethodParamPad 0 Errors Error
NoWhitespaceAfter 0 Errors Error
NoWhitespaceBefore 0 Errors Error
OperatorWrap 0 Errors Error
ParenPad 0 Errors Error
TypecastParenPad 0 Errors Error
WhitespaceAfter 2 Errors Error
WhitespaceAround 4 Errors Error
ModifierOrder 1 Errors Error
RedundantModifier 0 Errors Error
AvoidNestedBlocks 0 Errors Error
EmptyBlock 0 Errors Error
LeftCurly
  • option: "nl"
0 Errors Error
NeedBraces 4 Errors Error
RightCurly
  • option: "alone"
0 Errors Error
DeclarationOrder 1 Errors Error
DefaultComesLast 0 Errors Error
DoubleCheckedLocking 0 Errors Error
EmptyStatement 0 Errors Error
EqualsHashCode 0 Errors Error
ExplicitInitialization 1 Errors Error
FallThrough 0 Errors Error
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
0 Errors Error
IllegalInstantiation 0 Errors Error
InnerAssignment 0 Errors Error
MagicNumber 0 Errors Error
MissingSwitchDefault 0 Errors Error
ParameterAssignment 0 Errors Error
RedundantThrows
  • allowUnchecked: "true"
0 Errors Error
SimplifyBooleanExpression 0 Errors Error
SimplifyBooleanReturn 0 Errors Error
StringLiteralEquality 0 Errors Error
DesignForExtension 7 Infos Info
FinalClass 5 Errors Error
HideUtilityClassConstructor 0 Errors Error
InterfaceIsType 0 Errors Error
VisibilityModifier 1 Errors Error
BooleanExpressionComplexity 0 Errors Error
ClassDataAbstractionCoupling 0 Errors Error
ClassFanOutComplexity
  • max: "10"
1 Errors Error
CyclomaticComplexity 0 Errors Error
NPathComplexity
  • max: "20"
0 Errors Error
JavaNCSS 0 Errors Error
ArrayTypeStyle 0 Errors Error
Indentation 1 Errors Error
TodoComment 0 Errors Error
UpperEll 0 Errors Error

Details

com/atlassian/gadgets/test/AjaxRequest.java

Violation Message Line
Errors 'org.apache.commons.httpclient.NameValuePair' should be separated from previous imports. 8
Errors Missing a Javadoc comment. 11

com/atlassian/gadgets/test/DashboardParser.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.test.Nodes.XPath.findNode' import. 9
Errors Wrong order for 'com.atlassian.gadgets.test.Nodes.attr' import. 11
Errors Wrong order for 'org.cyberneko.html.HTMLConfiguration' import. 15
Errors Class DashboardParser should be declared as final. 21
Errors Missing a Javadoc comment. 21
Errors 'if' construct must use '{}'s. 30
Errors 'if' construct must use '{}'s. 32
Warnings Line is longer than 120 characters. 33
Errors ctor def rcurly at indentation level 3 not at correct indentation, 4 36
Warnings Line has trailing spaces. 37

com/atlassian/gadgets/test/DirectoryEntryParser.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.test.Nodes.XPath.findNode' import. 5
Errors Class DirectoryEntryParser should be declared as final. 9
Errors Missing a Javadoc comment. 9

com/atlassian/gadgets/test/ExampleGadgetSpecs.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.spec.GadgetSpec' import. 7
Errors Class ExampleGadgetSpecs should be declared as final. 9
Errors Missing a Javadoc comment. 9
Errors Missing a Javadoc comment. 11
Errors Missing a Javadoc comment. 12
Errors Missing a Javadoc comment. 13
Errors Constructor definition in wrong order. 37

com/atlassian/gadgets/test/GadgetParser.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.test.Nodes.XPath.findNode' import. 6
Errors 'org.apache.commons.lang.BooleanUtils.toStringTrueFalse' should be separated from previous imports. 8
Errors Wrong order for 'java.net.MalformedURLException' import. 12
Errors 'org.w3c.dom.Node' should be separated from previous imports. 20
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 22
Errors 'com.google.common.base.Predicate' should be separated from previous imports. 24
Errors Wrong order for 'com.google.common.collect.Iterables' import. 26
Errors Class GadgetParser should be declared as final. 28
Errors Missing a Javadoc comment. 28
Errors Class Fan-Out Complexity is 12 (max allowed is 10). 28
Errors 'if' construct must use '{}'s. 37
Errors 'if' construct must use '{}'s. 39
Warnings Line is longer than 120 characters. 40
Errors ',' is not followed by whitespace. 43
Warnings Line has trailing spaces. 82
Warnings Line is longer than 120 characters. 90
Warnings Line has trailing spaces. 97
Errors Missing a Javadoc comment. 107
Warnings Line is longer than 120 characters. 117
Warnings Line is longer than 120 characters. 137
Warnings Line is longer than 120 characters. 152
Errors Missing a Javadoc comment. 180
Warnings Line has trailing spaces. 183
Warnings Line is longer than 120 characters. 188
Warnings Line has trailing spaces. 201

com/atlassian/gadgets/test/GadgetSpecBuilder.java

Violation Message Line
Errors Missing package-info.java file. 0
Errors Wrong order for 'java.util.List' import. 6
Errors Wrong order for 'java.util.HashMap' import. 8
Errors Wrong order for 'java.net.URI' import. 9
Errors Unused import - java.net.URISyntaxException. 10
Errors Wrong order for 'com.atlassian.gadgets.spec.Feature' import. 13
Errors Class GadgetSpecBuilder should be declared as final. 16
Errors Missing a Javadoc comment. 16
Warnings Line has trailing spaces. 19
Warnings Line has trailing spaces. 30
Errors ',' is not followed by whitespace. 58

com/atlassian/gadgets/test/Nodes.java

Violation Message Line
Errors Missing a Javadoc comment. 14
Errors '{' is not followed by whitespace. 16
Errors '}' is not preceded with whitespace. 16
Warnings Line has trailing spaces. 22
Warnings Line has trailing spaces. 32
Errors Missing a Javadoc comment. 33
Errors 'private' modifier out of order with the JLS suggestions. 35
Errors Name 'xpathFactory' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 35
Errors '{' is not followed by whitespace. 37
Errors '}' is not preceded with whitespace. 37
Warnings Line has trailing spaces. 38
Errors Missing a Javadoc comment. 44
Errors Variable 'index' explicitly initialized to '0' (default value for its type). 48
Errors Variable 'index' must be private and have accessor methods. 48
Errors Missing a Javadoc comment. 50
Errors Missing a Javadoc comment. 55
Errors Missing a Javadoc comment. 60
Errors Missing a Javadoc comment. 67
Warnings Line has trailing spaces. 73
Errors Missing a Javadoc comment. 97

com/atlassian/gadgets/test/PassThroughTransactionTemplate.java

Violation Message Line
Errors Wrong order for 'com.atlassian.sal.api.transaction.TransactionCallback' import. 4
Infos Method 'execute' is not designed for extension - needs to be abstract, final or empty. 12

com/atlassian/gadgets/test/TestApplicationProperties.java

Violation Message Line
Errors Wrong order for 'java.io.File' import. 4
Errors Unused import - com.atlassian.gadgets.util.UrlUtils.ensureTrailingSlash. 9
Errors Missing a Javadoc comment. 11
Infos Method 'getBaseUrl' is not designed for extension - needs to be abstract, final or empty. 13
Infos Method 'getDisplayName' is not designed for extension - needs to be abstract, final or empty. 18
Infos Method 'getVersion' is not designed for extension - needs to be abstract, final or empty. 23
Infos Method 'getBuildDate' is not designed for extension - needs to be abstract, final or empty. 28
Infos Method 'getBuildNumber' is not designed for extension - needs to be abstract, final or empty. 45
Infos Method 'getHomeDirectory' is not designed for extension - needs to be abstract, final or empty. 50

com/atlassian/gadgets/test/UserPrefBuilder.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.spec.DataType' import. 6
Errors Missing a Javadoc comment. 11