The following document contains the results of Checkstyle
.
| Files | Infos |
Warnings |
Errors |
|---|---|---|---|
| 6 | 0 | 0 | 74 |
| Rules | Violations | Severity |
|---|---|---|
| PackageHtml | 3 | |
| NewlineAtEndOfFile | 0 | |
| Translation | 0 | |
| JavadocMethod | 12 | |
| JavadocType | 0 | |
| JavadocVariable | 8 | |
| JavadocStyle | 3 | |
| ConstantName | 0 | |
| LocalFinalVariableName | 0 | |
| LocalVariableName | 0 | |
| MemberName | 0 | |
| MethodName | 0 | |
| PackageName | 0 | |
| ParameterName | 0 | |
| StaticVariableName | 0 | |
| TypeName | 0 | |
| AvoidStarImport | 0 | |
| IllegalImport | 0 | |
| RedundantImport | 1 | |
| UnusedImports | 0 | |
| FileLength | 0 | |
| LineLength | 16 | |
| MethodLength | 0 | |
| ParameterNumber | 0 | |
| EmptyForIteratorPad | 0 | |
| MethodParamPad | 0 | |
| NoWhitespaceAfter | 0 | |
| NoWhitespaceBefore | 0 | |
| OperatorWrap | 0 | |
| ParenPad | 0 | |
| TypecastParenPad | 0 | |
| TabCharacter | 2 | |
| WhitespaceAfter | 1 | |
| WhitespaceAround | 0 | |
| ModifierOrder | 0 | |
| RedundantModifier | 0 | |
| AvoidNestedBlocks | 0 | |
| EmptyBlock | 0 | |
| LeftCurly | 0 | |
| NeedBraces | 0 | |
| RightCurly | 0 | |
| AvoidInlineConditionals | 1 | |
| DoubleCheckedLocking | 0 | |
| EmptyStatement | 0 | |
| EqualsHashCode | 0 | |
| HiddenField | 1 | |
| IllegalInstantiation | 0 | |
| InnerAssignment | 0 | |
| MagicNumber | 0 | |
| MissingSwitchDefault | 0 | |
| RedundantThrows | 1 | |
| SimplifyBooleanExpression | 0 | |
| SimplifyBooleanReturn | 0 | |
| DesignForExtension | 18 | |
| FinalClass | 0 | |
| HideUtilityClassConstructor | 0 | |
| InterfaceIsType | 0 | |
| VisibilityModifier | 1 | |
| ArrayTypeStyle | 0 | |
| FinalParameters | 4 | |
GenericIllegalRegexp
|
2 | |
| TodoComment | 0 | |
| UpperEll | 0 |
| Violation | Message | Line |
|---|---|---|
| Line is longer than 80 characters. | 2 | |
| Line is longer than 80 characters. | 8 | |
| First sentence should end with a period. | 16 | |
| Missing a Javadoc comment. | 23 | |
| Missing a Javadoc comment. | 24 | |
| Missing a Javadoc comment. | 25 | |
| Missing a Javadoc comment. | 27 | |
| Missing a Javadoc comment. | 28 | |
| Missing a Javadoc comment. | 30 | |
| Parameter locale should be final. | 30 | |
| 'locale' hides a field. | 30 | |
| Line contains a tab character. | 31 | |
| Line has trailing spaces. | 33 | |
| Method 'getQuestion' is not designed for extension - needs to be abstract, final or empty. | 39 | |
| Method 'getChallenge' is not designed for extension - needs to be abstract, final or empty. | 48 | |
| Avoid inline conditionals. | 50 | |
| Method 'validateResponse' is not designed for extension - needs to be abstract, final or empty. | 60 | |
| Parameter response should be final. | 60 | |
| Line is longer than 80 characters. | 65 | |
| Line is longer than 80 characters. | 66 | |
| Line is longer than 80 characters. | 67 | |
| Method 'disposeChallenge' is not designed for extension - needs to be abstract, final or empty. | 70 | |
| Line is longer than 80 characters. | 75 | |
| Method 'hasGetChalengeBeenCalled' is not designed for extension - needs to be abstract, final or empty. | 80 |
| Violation | Message | Line |
|---|---|---|
| Line is longer than 80 characters. | 2 | |
| Redundant import from the same package - com.octo.captcha.engine.CaptchaEngineException. | 12 | |
| First sentence should end with a period. | 16 | |
| Line is longer than 80 characters. | 22 | |
| Method 'getNextCaptcha' is not designed for extension - needs to be abstract, final or empty. | 28 | |
| Method 'getNextCaptcha' is not designed for extension - needs to be abstract, final or empty. | 39 | |
| Parameter locale should be final. | 39 | |
| Method 'getFactories' is not designed for extension - needs to be abstract, final or empty. | 46 | |
| Line is longer than 80 characters. | 56 | |
| Parameter factories should be final. | 56 | |
| Redundant throws: 'CaptchaEngineException' is unchecked exception. | 56 |
| Violation | Message | Line |
|---|---|---|
| Line is longer than 80 characters. | 2 | |
| First sentence should end with a period. | 17 | |
| Line is longer than 80 characters. | 20 | |
| Missing a Javadoc comment. | 25 | |
| Variable 'store' must be private and have accessor methods. | 25 | |
| Missing a Javadoc comment. | 26 | |
| Missing a Javadoc comment. | 27 | |
| Method 'setUp' is not designed for extension - needs to be abstract, final or empty. | 29 | |
| Missing a Javadoc comment. | 29 | |
| Line has trailing spaces. | 35 | |
| Method 'tearDown' is not designed for extension - needs to be abstract, final or empty. | 36 | |
| Missing a Javadoc comment. | 36 | |
| Line contains a tab character. | 37 | |
| Missing a Javadoc comment. | 40 | |
| Method 'testHasCaptcha' is not designed for extension - needs to be abstract, final or empty. | 43 | |
| Missing a Javadoc comment. | 43 | |
| Method 'testStoreCaptcha' is not designed for extension - needs to be abstract, final or empty. | 54 | |
| Missing a Javadoc comment. | 54 | |
| Method 'testStoreCaptchaAndLocale' is not designed for extension - needs to be abstract, final or empty. | 67 | |
| Missing a Javadoc comment. | 67 | |
| ',' is not followed by whitespace. | 74 | |
| Method 'testRemoveCaptcha' is not designed for extension - needs to be abstract, final or empty. | 81 | |
| Missing a Javadoc comment. | 81 | |
| Line is longer than 80 characters. | 90 | |
| Line is longer than 80 characters. | 94 | |
| Method 'testGetSize' is not designed for extension - needs to be abstract, final or empty. | 101 | |
| Missing a Javadoc comment. | 101 | |
| Line is longer than 80 characters. | 110 | |
| Method 'testGetKeys' is not designed for extension - needs to be abstract, final or empty. | 115 | |
| Missing a Javadoc comment. | 115 | |
| Line is longer than 80 characters. | 125 | |
| Method 'testGetCaptcha' is not designed for extension - needs to be abstract, final or empty. | 134 | |
| Missing a Javadoc comment. | 134 | |
| Line is longer than 80 characters. | 141 | |
| Method 'testEmpty' is not designed for extension - needs to be abstract, final or empty. | 148 | |
| Missing a Javadoc comment. | 148 |