Checkstyle Results

The following document contains the results of Checkstyle.

Summary

FilesInfos InfosWarnings WarningsErrors Errors
30044

Rules

RulesViolationsSeverity
AnnotationUseStyle0Errors Error
MissingDeprecated0Errors Error
MissingOverride0Errors Error
PackageAnnotation0Errors Error
EmptyBlock0Errors Error
LeftCurly0Errors Error
NeedBraces0Errors Error
RightCurly0Errors Error
AvoidNestedBlocks0Errors Error
VisibilityModifier0Errors Error
FinalClass0Errors Error
InterfaceIsType0Errors Error
HideUtilityClassConstructor2Errors Error
MutableException0Errors Error
ThrowsCount
  • max: "4"
0Warnings Warning
InnerTypeLast2Errors Error
ArrayTrailingComma0Infos Info
AvoidInlineConditionals0Infos Info
CovariantEquals0Errors Error
DoubleCheckedLocking0Errors Error
EmptyStatement0Errors Error
EqualsAvoidNull0Infos Info
EqualsHashCode0Errors Error
IllegalInstantiation
  • classes: "java.lang.Boolean"
0Errors Error
InnerAssignment0Errors Error
MagicNumber
  • ignoreHashCodeMethod: "true"
0Warnings Warning
MissingSwitchDefault0Errors Error
RedundantThrows0Errors Error
SimplifyBooleanExpression0Errors Error
SimplifyBooleanReturn0Errors Error
StringLiteralEquality0Errors Error
NestedForDepth
  • max: "4"
0Errors Error
NestedIfDepth
  • max: "4"
0Errors Error
NestedTryDepth
  • max: "4"
0Errors Error
NoClone0Infos Info
NoFinalizer0Infos Info
SuperClone0Errors Error
SuperFinalize0Errors Error
IllegalCatch0Warnings Warning
IllegalThrows0Warnings Warning
PackageDeclaration0Errors Error
JUnitTestCase0Errors Error
ReturnCount
  • max: "1"
  • format: "^$"
0Errors Error
IllegalType0Errors Error
DeclarationOrder0Errors Error
ParameterAssignment4Errors Error
ExplicitInitialization0Warnings Warning
DefaultComesLast0Errors Error
FallThrough0Errors Error
MultipleStringLiterals
  • allowedDuplicates: "4"
3Errors Error
MultipleVariableDeclarations0Errors Error
UnnecessaryParentheses0Errors Error
OneStatementPerLine0Errors Error
AvoidStarImport0Errors Error
AvoidStaticImport
  • excludes: "org.junit.Assert.*"
0Errors Error
IllegalImport0Errors Error
IllegalImport
  • illegalPkgs: "java.util.logging, org.apache.log4j, org.apache.commons.logging"
0Errors Error
RedundantImport0Errors Error
UnusedImports0Errors Error
ImportOrder
  • separated: "true"
  • groups: "java, javax, com, junit, net, org, test"
  • option: "under"
2Errors Error
JavadocType
  • scope: "protected"
1Errors Error
JavadocMethod
  • allowMissingPropertyJavadoc: "true"
  • allowThrowsTagsForSubclasses: "true"
  • scope: "protected"
  • allowUndeclaredRTE: "true"
22Errors Error
JavadocVariable
  • scope: "protected"
0Errors Error
JavadocStyle
  • scope: "protected"
  • checkEmptyJavadoc: "true"
2Errors Error
BooleanExpressionComplexity0Errors Error
ClassDataAbstractionCoupling0Infos Info
ClassFanOutComplexity0Infos Info
CyclomaticComplexity0Infos Info
NPathComplexity0Infos Info
JavaNCSS0Infos Info
JavaNCSS
  • methodMaximum: "200"
0Errors Error
TodoComment
  • format: "DOCUMENT ME!"
0Errors Error
UncommentedMain0Warnings Warning
UpperEll0Errors Error
ArrayTypeStyle0Errors Error
TrailingComment0Errors Error
OuterTypeFilename0Errors Error
ModifierOrder0Errors Error
RedundantModifier0Errors Error
AbstractClassName1Errors Error
ClassTypeParameterName0Errors Error
ConstantName0Errors Error
LocalFinalVariableName
  • format: "^[a-z_][a-zA-Z0-9]*$"
0Errors Error
LocalVariableName
  • format: "^[a-z_][a-zA-Z0-9]*$"
0Errors Error
MemberName
  • format: "^[a-z_][a-zA-Z0-9]*$"
0Errors Error
MethodName0Errors Error
MethodTypeParameterName0Errors Error
PackageName
  • format: "^(com|test)\.squeakysand\.([a-z][a-z0-9]*)(\.[a-z][a-z0-9]*)+$"
2Errors Error
ParameterName
  • format: "^[a-z_][a-zA-Z0-9]*$"
0Errors Error
StaticVariableName0Errors Error
TypeName0Errors Error
RegexpSinglelineJava
  • message: "Do not write directly to standard out or standard error. Use SL4J logging API instead."
  • ignoreComments: "true"
  • format: "System\.(out|err)\.(print|println)"
0Errors Error
RegexpSinglelineJava
  • message: "Do not use printStackTrace method. Use SL4J logging API instead."
  • ignoreComments: "true"
  • format: "\.printStackTrace\("
0Errors Error
ExecutableStatementCount0Errors Error
LineLength
  • max: "150"
0Errors Error
MethodLength0Errors Error
AnonInnerLength0Errors Error
ParameterNumber0Errors Error
OuterTypeNumber0Errors Error
MethodCount0Errors Error
GenericWhitespace0Errors Error
EmptyForInitializerPad
  • option: "space"
0Errors Error
EmptyForIteratorPad0Errors Error
MethodParamPad0Errors Error
NoWhitespaceAfter0Errors Error
NoWhitespaceBefore0Errors Error
OperatorWrap0Errors Error
ParenPad0Errors Error
TypecastParenPad0Errors Error
WhitespaceAfter0Errors Error
WhitespaceAround0Errors Error
com.squeakysand.devtools.checkstyle.JUnitTestPackageName0Errors Error
StrictDuplicateCode
  • min: "30"
0Errors Error
JavadocPackage3Errors Error
NewlineAtEndOfFile0Errors Error
Translation0Errors Error
RegexpSingleline
  • message: "Do not use @version tag in JavaDocs"
  • format: "@version"
0Errors Error
RegexpSingleline
  • message: "Do not use CVS keyword expansion tags in JavaDocs"
  • format: "\$Id\:|\$Revision\:|\$Date\:"
0Errors Error
FileLength0Warnings Warning
FileTabCharacter0Errors Error

Details

com/squeakysand/sling/SlingUtils.java

ViolationMessageLine
ErrorsMissing package-info.java file.0
ErrorsName 'com.squeakysand.sling' must match pattern '^(com|test)\.squeakysand\.([a-z][a-z0-9]*)(\.[a-z][a-z0-9]*)+$'.16
ErrorsWrong order for 'java.util.Arrays' import.21
ErrorsMissing a Javadoc comment.34
ErrorsUtility classes should not have a public or default constructor.34
ErrorsExpected an @return tag.42
ErrorsExpected @param tag for 'descendentNode'.42
ErrorsExpected @param tag for 'slingResourceType'.42
ErrorsMissing a Javadoc comment.47
ErrorsMissing a Javadoc comment.59
ErrorsMissing a Javadoc comment.69
ErrorsExpected an @return tag.78
ErrorsExpected @param tag for 'selector'.78
ErrorsExpected @param tag for 'slingRequest'.78

com/squeakysand/sling/request/RequestPathInfoFactory.java

ViolationMessageLine
ErrorsMissing package-info.java file.0
ErrorsJavadoc has empty description section.13
ErrorsClass 'RequestPathInfoFactory' must be declared as 'abstract'.17
ErrorsUtility classes should not have a public or default constructor.17
ErrorsAssignment of parameter 'urlPath' is not allowed.44
ErrorsAssignment of parameter 'urlPath' is not allowed.61
ErrorsAssignment of parameter 'urlPath' is not allowed.68
ErrorsAssignment of parameter 'urlPath' is not allowed.72
ErrorsFields and methods should be before inner classes.134
ErrorsMissing a Javadoc comment.134
ErrorsFields and methods should be before inner classes.138
ErrorsMissing a Javadoc comment.138

test/squeakysand/sling/RequestPathInfoFactoryTest.java

ViolationMessageLine
ErrorsMissing package-info.java file.0
ErrorsName 'test.squeakysand.sling' must match pattern '^(com|test)\.squeakysand\.([a-z][a-z0-9]*)(\.[a-z][a-z0-9]*)+$'.1
ErrorsWrong order for 'com.squeakysand.sling.request.RequestPathInfoFactory' import.6
ErrorsJavadoc has empty description section.15
ErrorsMissing a Javadoc comment.21
ErrorsMissing a Javadoc comment.25
ErrorsMissing a Javadoc comment.29
ErrorsMissing a Javadoc comment.33
ErrorsMissing a Javadoc comment.37
ErrorsThe String "/a/b" appears 8 times in the file.39
ErrorsMissing a Javadoc comment.47
ErrorsThe String "html" appears 6 times in the file.53
ErrorsMissing a Javadoc comment.57
ErrorsThe String "s1" appears 6 times in the file.63
ErrorsMissing a Javadoc comment.69
ErrorsMissing a Javadoc comment.81
ErrorsMissing a Javadoc comment.92
ErrorsMissing a Javadoc comment.103