The following document contains the results of Checkstyle. 
| Files | Infos |
Warnings |
Errors |
|---|---|---|---|
| 21 | 25 | 9 | 93 |
| Rules | Violations | Severity |
|---|---|---|
| JavadocPackage | 2 | |
| Translation | 0 | |
| FileLength | 0 | |
FileTabCharacter
|
0 | |
RegexpSingleline
|
3 | |
| AnnotationUseStyle | 0 | |
| MissingDeprecated | 0 | |
MissingOverride
|
0 | |
| PackageAnnotation | 0 | |
JavadocMethod
|
9 | |
JavadocType
|
8 | |
JavadocVariable
|
13 | |
JavadocStyle
|
4 | |
| ConstantName | 2 | |
| LocalFinalVariableName | 0 | |
| LocalVariableName | 0 | |
| MemberName | 0 | |
| MethodName | 0 | |
| PackageName | 0 | |
| ParameterName | 0 | |
| StaticVariableName | 0 | |
| TypeName | 0 | |
| AvoidStarImport | 0 | |
| IllegalImport | 0 | |
ImportOrder
|
30 | |
| RedundantImport | 0 | |
| UnusedImports | 0 | |
LineLength
|
6 | |
| MethodLength | 0 | |
| ParameterNumber | 0 | |
| EmptyForIteratorPad | 0 | |
| MethodParamPad | 0 | |
| NoWhitespaceAfter | 0 | |
| NoWhitespaceBefore | 0 | |
| ParenPad | 2 | |
| TypecastParenPad | 0 | |
| WhitespaceAfter | 0 | |
| WhitespaceAround | 4 | |
| ModifierOrder | 1 | |
| RedundantModifier | 4 | |
| AvoidNestedBlocks | 0 | |
| EmptyBlock | 0 | |
LeftCurly
|
0 | |
| NeedBraces | 0 | |
RightCurly
|
0 | |
| DeclarationOrder | 1 | |
| DefaultComesLast | 0 | |
| DoubleCheckedLocking | 0 | |
| EmptyStatement | 0 | |
| EqualsHashCode | 0 | |
| ExplicitInitialization | 0 | |
| FallThrough | 0 | |
HiddenField
|
0 | |
| IllegalInstantiation | 0 | |
| InnerAssignment | 0 | |
| MagicNumber | 4 | |
| MissingSwitchDefault | 0 | |
| ParameterAssignment | 0 | |
RedundantThrows
|
0 | |
| SimplifyBooleanExpression | 0 | |
| SimplifyBooleanReturn | 0 | |
| StringLiteralEquality | 0 | |
| DesignForExtension | 25 | |
| FinalClass | 1 | |
| HideUtilityClassConstructor | 0 | |
| InterfaceIsType | 0 | |
| VisibilityModifier | 0 | |
| BooleanExpressionComplexity | 0 | |
| ClassDataAbstractionCoupling | 0 | |
ClassFanOutComplexity
|
4 | |
| CyclomaticComplexity | 0 | |
NPathComplexity
|
0 | |
| JavaNCSS | 0 | |
| ArrayTypeStyle | 0 | |
| Indentation | 0 | |
| TodoComment | 4 | |
| UpperEll | 0 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.util.Arrays' import. | 5 | |
| Missing a Javadoc comment. | 10 | |
| Missing a Javadoc comment. | 14 | |
| Missing a Javadoc comment. | 15 | |
| Missing a Javadoc comment. | 16 | |
| Missing a Javadoc comment. | 17 | |
| Missing a Javadoc comment. | 18 | |
| Missing a Javadoc comment. | 19 | |
| Missing a Javadoc comment. | 20 | |
| Missing a Javadoc comment. | 23 | |
| Missing a Javadoc comment. | 25 | |
| Missing a Javadoc comment. | 29 | |
| Missing a Javadoc comment. | 46 | |
| Static variable definition in wrong order. | 58 | |
| Name 'categoryNameMap' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 58 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| First sentence should end with a period. | 19 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.net.URI' import. | 5 | |
| Missing a Javadoc comment. | 10 | |
| Missing a Javadoc comment. | 12 | |
| Redundant 'public' modifier. | 12 | |
| Missing a Javadoc comment. | 13 | |
| Redundant 'public' modifier. | 13 |
| Violation | Message | Line |
|---|---|---|
| Method 'checkForPermissionToConfigureDirectory' is not designed for extension - needs to be abstract, final or empty. | 37 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.net.URI' import. | 5 | |
| Missing a Javadoc comment. | 7 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'javax.annotation.Nullable' import. | 5 | |
| First sentence should end with a period. | 9 | |
| Line is longer than 120 characters. | 10 | |
| '{' is not followed by whitespace. | 14 | |
| '}' is not preceded with whitespace. | 14 | |
| Line has trailing spaces. | 15 | |
| '(' is followed by whitespace. | 45 | |
| ')' is preceded with whitespace. | 45 | |
| Line has trailing spaces. | 51 | |
| 'if' is not followed by whitespace. | 52 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.apache.commons.logging.Log' import. | 31 | |
| Class Fan-Out Complexity is 18 (max allowed is 10). | 39 | |
| Method 'getDirectory' is not designed for extension - needs to be abstract, final or empty. | 80 | |
| '}' is not preceded with whitespace. | 82 | |
| Method 'putGadgetInDirectory' is not designed for extension - needs to be abstract, final or empty. | 98 | |
| Method 'deleteGadgetFromDirectory' is not designed for extension - needs to be abstract, final or empty. | 170 |
| Violation | Message | Line |
|---|---|---|
| Missing a Javadoc comment. | 5 | |
| Redundant 'public' modifier. | 14 | |
| First sentence should end with a period. | 16 | |
| Redundant 'public' modifier. | 23 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.atlassian.gadgets.directory.internal.Directory' import. | 6 | |
| Wrong order for 'com.google.common.base.Function' import. | 9 | |
| Wrong order for 'com.atlassian.gadgets.spec.GadgetSpecFactory' import. | 13 | |
| Wrong order for 'com.atlassian.gadgets.spec.GadgetSpec' import. | 14 | |
| Wrong order for 'com.atlassian.gadgets.GadgetParsingException' import. | 15 | |
| Missing a Javadoc comment. | 18 | |
| Line is longer than 120 characters. | 37 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.atlassian.sal.api.transaction.TransactionCallback' import. | 17 | |
| Comment matches to-do format 'TODO:'. | 27 | |
| Class Fan-Out Complexity is 17 (max allowed is 10). | 28 | |
| Method 'contains' is not designed for extension - needs to be abstract, final or empty. | 47 | |
| Method 'internalEntries' is not designed for extension - needs to be abstract, final or empty. | 52 | |
| Method 'add' is not designed for extension - needs to be abstract, final or empty. | 58 | |
| Missing a Javadoc comment. | 62 | |
| Method 'remove' is not designed for extension - needs to be abstract, final or empty. | 74 | |
| Missing a Javadoc comment. | 78 | |
| Method 'convertToLocalizedDirectoryEntry' is not designed for extension - needs to be abstract, final or empty. | 86 | |
| Missing a Javadoc comment. | 91 | |
| Method 'toString' is not designed for extension - needs to be abstract, final or empty. | 137 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.net.URI' import. | 7 | |
| Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. | 12 | |
| 'com.google.common.base.Function' should be separated from previous imports. | 15 | |
| Missing a Javadoc comment. | 19 | |
| Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 21 | |
| Method 'getEntries' is not designed for extension - needs to be abstract, final or empty. | 30 | |
| Method 'contains' is not designed for extension - needs to be abstract, final or empty. | 35 | |
| Missing a Javadoc comment. | 45 | |
| Missing a Javadoc comment. | 71 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.atlassian.gadgets.spi.ExternalGadgetSpecId' import. | 5 | |
| Missing a Javadoc comment. | 9 | |
| Method 'buildDirectoryResourceUrl' is not designed for extension - needs to be abstract, final or empty. | 17 | |
| Method 'buildDirectoryGadgetResourceUrl' is not designed for extension - needs to be abstract, final or empty. | 23 |
| Violation | Message | Line |
|---|---|---|
| 'org.apache.commons.lang.StringUtils.defaultString' should be separated from previous imports. | 11 | |
| Wrong order for 'com.atlassian.gadgets.spec.Feature' import. | 12 | |
| Missing a Javadoc comment. | 15 | |
| 'static' modifier out of order with the JLS suggestions. | 17 | |
| '31' is a magic number. | 133 | |
| '31' is a magic number. | 134 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.atlassian.gadgets.GadgetSpecProvider' import. | 7 | |
| 'org.apache.commons.logging.Log' should be separated from previous imports. | 14 | |
| Wrong order for 'com.atlassian.gadgets.spec.GadgetSpecFactory' import. | 16 | |
| Wrong order for 'com.atlassian.gadgets.GadgetParsingException' import. | 17 | |
| Class Fan-Out Complexity is 11 (max allowed is 10). | 24 | |
| Method 'contains' is not designed for extension - needs to be abstract, final or empty. | 42 | |
| Missing a Javadoc comment. | 46 | |
| Method 'internalEntries' is not designed for extension - needs to be abstract, final or empty. | 70 | |
| Missing a Javadoc comment. | 74 | |
| Method 'convertToLocalizedDirectoryEntry' is not designed for extension - needs to be abstract, final or empty. | 97 | |
| Missing a Javadoc comment. | 102 | |
| Line is longer than 120 characters. | 106 | |
| Method 'toString' is not designed for extension - needs to be abstract, final or empty. | 122 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| Line has trailing spaces. | 26 | |
| Method 'voteOn' is not designed for extension - needs to be abstract, final or empty. | 27 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.google.common.collect.ImmutableSet' import. | 18 | |
| Class Fan-Out Complexity is 13 (max allowed is 10). | 24 | |
| Method 'contains' is not designed for extension - needs to be abstract, final or empty. | 41 | |
| Method 'pluginGadgetSpecEnabled' is not designed for extension - needs to be abstract, final or empty. | 54 | |
| Method 'pluginGadgetSpecDisabled' is not designed for extension - needs to be abstract, final or empty. | 62 | |
| Method 'internalEntries' is not designed for extension - needs to be abstract, final or empty. | 70 | |
| Method 'convertToLocalizedDirectoryEntry' is not designed for extension - needs to be abstract, final or empty. | 83 | |
| Missing a Javadoc comment. | 88 | |
| Line is longer than 120 characters. | 135 | |
| Method 'toString' is not designed for extension - needs to be abstract, final or empty. | 139 |
| Violation | Message | Line |
|---|---|---|
| First sentence should end with a period. | 3 |
| Violation | Message | Line |
|---|---|---|
| 'org.apache.commons.lang.builder.EqualsBuilder' should be separated from previous imports. | 4 | |
| Wrong order for 'javax.xml.bind.annotation.XmlElement' import. | 6 | |
| Comment matches to-do format 'TODO:'. | 11 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. | 5 | |
| Wrong order for 'javax.xml.bind.annotation.XmlElement' import. | 7 | |
| Wrong order for 'java.util.Collection' import. | 9 | |
| Wrong order for 'com.google.common.collect.ImmutableList' import. | 14 | |
| Comment matches to-do format 'TODO:'. | 18 | |
| Class JAXBDirectoryContents should be declared as final. | 20 | |
| Line is longer than 120 characters. | 44 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'javax.xml.bind.annotation.XmlElement' import. | 9 | |
| Wrong order for 'java.net.URI' import. | 11 | |
| Comment matches to-do format 'TODO:'. | 16 | |
| Line is longer than 120 characters. | 60 | |
| '17' is a magic number. | 201 | |
| '29' is a magic number. | 201 |