The following document contains the results of Checkstyle
.
| Files | Infos |
Warnings |
Errors |
|---|---|---|---|
| 41 | 92 | 1 | 13 |
| Rules | Violations | Severity |
|---|---|---|
| NewlineAtEndOfFile | 1 | |
LeftCurly
|
1 | |
RightCurly
|
0 | |
| AvoidNestedBlocks | 0 | |
JavadocMethod
|
0 | |
ConstantName
|
0 | |
| LocalFinalVariableName | 0 | |
| LocalVariableName | 0 | |
| MemberName | 0 | |
| MethodName | 0 | |
| PackageName | 0 | |
| ParameterName | 0 | |
StaticVariableName
|
1 | |
| TypeName | 0 | |
Header
|
0 | |
| IllegalImport | 0 | |
| RedundantImport | 1 | |
| UnusedImports | 1 | |
ImportOrder
|
40 | |
LineLength
|
4 | |
| FileLength | 0 | |
| MethodLength | 0 | |
| ParameterNumber | 0 | |
EmptyForInitializerPad
|
0 | |
EmptyForIteratorPad
|
0 | |
| MethodParamPad | 0 | |
NoWhitespaceAfter
|
0 | |
NoWhitespaceBefore
|
0 | |
ParenPad
|
3 | |
| TypecastParenPad | 0 | |
| TabCharacter | 0 | |
WhitespaceAfter
|
0 | |
WhitespaceAround
|
20 | |
| TabCharacter | 0 | |
| RedundantModifier | 11 | |
| ArrayTrailingComma | 0 | |
| CovariantEquals | 0 | |
| DoubleCheckedLocking | 0 | |
| EmptyStatement | 0 | |
| EqualsHashCode | 0 | |
HiddenField
|
4 | |
IllegalInstantiation
|
0 | |
IllegalToken
|
0 | |
| IllegalTokenText | 0 | |
| InnerAssignment | 1 | |
| MissingSwitchDefault | 0 | |
| ModifiedControlVariable | 4 | |
| SimplifyBooleanExpression | 0 | |
| SimplifyBooleanReturn | 0 | |
| StringLiteralEquality | 0 | |
| SuperClone | 0 | |
| SuperFinalize | 0 | |
| PackageDeclaration | 0 | |
| JUnitTestCase | 0 | |
| ParameterAssignment | 1 | |
| ExplicitInitialization | 1 | |
| DefaultComesLast | 0 | |
| FallThrough | 0 | |
VisibilityModifier
|
10 | |
| FinalClass | 0 | |
| InterfaceIsType | 0 | |
| HideUtilityClassConstructor | 1 | |
GenericIllegalRegexp
|
1 | |
| UpperEll | 0 | |
| ArrayTypeStyle | 0 |
| Violation | Message | Line |
|---|---|---|
| Variable 'data' must be private and have accessor methods. | 26 | |
| Variable 'dataLen' must be private and have accessor methods. | 27 | |
| Variable 'startPos' must be private and have accessor methods. | 28 | |
| Variable 'endPos' must be private and have accessor methods. | 28 | |
| Variable 'gotNext' must be private and have accessor methods. | 29 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.MarkupSplitter' import. | 16 | |
| '==' is not preceded with whitespace. | 57 | |
| '==' is not followed by whitespace. | 57 | |
| '==' is not preceded with whitespace. | 57 | |
| '==' is not followed by whitespace. | 57 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.util.HashMap' import. | 20 | |
| Assignment of parameter 'index' is not allowed. | 82 | |
| '+' is not preceded with whitespace. | 127 | |
| '+' is not followed by whitespace. | 127 |
| Violation | Message | Line |
|---|---|---|
| Name 'imageExtensions' must match pattern '^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*)$'. | 24 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'javolution.lang.Text' import. | 16 | |
| Wrong order for 'java.io.Reader' import. | 18 | |
| Wrong order for 'java.io.StringWriter' import. | 20 | |
| Wrong order for 'java.io.IOException' import. | 21 | |
| Line has trailing spaces. | 58 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.*' import. | 17 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.WikiContext' import. | 16 | |
| Wrong order for 'java.io.IOException' import. | 19 | |
| Wrong order for 'org.apache.velocity.VelocityContext' import. | 24 | |
| Wrong order for 'org.apache.velocity.app.Velocity' import. | 26 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.InputStream' import. | 18 | |
| Wrong order for 'java.io.IOException' import. | 19 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.util.Map' import. | 17 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.apache.velocity.VelocityContext' import. | 16 | |
| Wrong order for 'java.io.Writer' import. | 23 | |
| Wrong order for 'java.io.IOException' import. | 24 | |
| Wrong order for 'java.util.HashMap' import. | 26 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.MarkupSplitter' import. | 16 | |
| '==' is not preceded with whitespace. | 59 | |
| '==' is not followed by whitespace. | 59 | |
| Control variable 'attr' is modified. | 106 | |
| Control variable 'attr' is modified. | 107 | |
| Control variable 'attr' is modified. | 108 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'javolution.lang.Text' import. | 18 | |
| Control variable 'i' is modified. | 78 | |
| 'markup' hides a field. | 104 | |
| 'markupLen' hides a field. | 104 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.Writer' import. | 17 | |
| Wrong order for 'java.io.IOException' import. | 18 | |
| Variable 'tb' must be private and have accessor methods. | 28 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.IOException' import. | 20 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.InputStreamReader' import. | 19 | |
| Utility classes should not have a public or default constructor. | 26 |
| Violation | Message | Line |
|---|---|---|
| Redundant 'public' modifier. | 27 | |
| Redundant 'public' modifier. | 34 | |
| Redundant 'public' modifier. | 41 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 | |
| ')' is not preceded with whitespace. | 29 | |
| ')' is not preceded with whitespace. | 41 | |
| Line is longer than 120 characters. | 53 | |
| '&&' is not followed by whitespace. | 53 | |
| '&&' is not followed by whitespace. | 53 | |
| ')' is not preceded with whitespace. | 53 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 | |
| Line is longer than 120 characters. | 31 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.WikiContext' import. | 16 | |
| Wrong order for 'java.util.ArrayList' import. | 19 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.util.Iterator' import. | 16 | |
| '{' should be on a new line. | 31 |
| Violation | Message | Line |
|---|---|---|
| File does not end with a newline. | 0 |
| Violation | Message | Line |
|---|---|---|
| Variable 'paragraphBreak' must be private and have accessor methods. | 24 | |
| Variable 'paragraphEnd' must be private and have accessor methods. | 25 | |
| Variable 'newParagraph' must be private and have accessor methods. | 26 | |
| Variable 'suppressBreak' explicitly initialized to 'false' (default value for its type). | 27 | |
| Variable 'suppressBreak' must be private and have accessor methods. | 27 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'java.io.IOException' import. | 17 |
| Violation | Message | Line |
|---|---|---|
| Redundant import from the same package - org.staticwiki.wiki.macro.WikiMacro. | 15 | |
| Wrong order for 'org.staticwiki.wiki.WikiException' import. | 16 | |
| Redundant 'public' modifier. | 25 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.WikiContext' import. | 16 | |
| Wrong order for 'org.staticwiki.wiki.ResourceHandler' import. | 17 | |
| Unused import - org.staticwiki.wiki.ResourceHandler. | 17 | |
| 'context' hides a field. | 73 | |
| 'context' hides a field. | 78 |
| Violation | Message | Line |
|---|---|---|
| Redundant 'public' modifier. | 34 | |
| Redundant 'public' modifier. | 42 | |
| Redundant 'public' modifier. | 50 | |
| Redundant 'public' modifier. | 58 | |
| Redundant 'public' modifier. | 66 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.line.WikiLineHandler' import. | 17 | |
| Wrong order for 'java.io.BufferedReader' import. | 20 | |
| Line is longer than 120 characters. | 26 |
| Violation | Message | Line |
|---|---|---|
| Inner assignments should be avoided. | 76 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.WikiContext' import. | 16 | |
| Redundant 'public' modifier. | 30 | |
| Redundant 'public' modifier. | 37 |
| Violation | Message | Line |
|---|---|---|
| Wrong order for 'org.staticwiki.wiki.renderer.WikiSubRenderer' import. | 16 | |
| Line is longer than 120 characters. | 32 | |
| '>' is not preceded with whitespace. | 32 | |
| '>' is not followed by whitespace. | 32 | |
| '==' is not preceded with whitespace. | 32 | |
| '==' is not followed by whitespace. | 32 | |
| '==' is not preceded with whitespace. | 32 | |
| '==' is not followed by whitespace. | 32 | |
| '==' is not preceded with whitespace. | 32 | |
| '==' is not followed by whitespace. | 32 | |
| '==' is not preceded with whitespace. | 32 | |
| '==' is not followed by whitespace. | 32 |