The following document contains the results of Checkstyle. 
| Files | I |
W |
E |
|---|---|---|---|
| com/munkei/CommandLineOption.java | 0 | 0 | 4 |
| com/munkei/CommandLineOptionTest.java | 0 | 0 | 8 |
| com/munkei/JArgP.java | 0 | 0 | 24 |
| com/munkei/JArgPTest.java | 0 | 0 | 25 |
| com/munkei/Option.java | 0 | 0 | 46 |
| com/munkei/exception/ArgumentParsingException.java | 0 | 0 | 8 |
| com/munkei/exception/NoSuchOptionException.java | 0 | 0 | 8 |
| Rules | Violations | Severity |
|---|---|---|
JavadocPackage
|
3 | |
| NewlineAtEndOfFile | 0 | |
| Translation | 0 | |
| FileLength | 0 | |
FileTabCharacter
|
0 | |
RegexpSingleline
|
0 | |
| JavadocMethod | 22 | |
| JavadocType | 2 | |
| JavadocVariable | 18 | |
| JavadocStyle | 8 | |
| ConstantName | 0 | |
| LocalFinalVariableName | 0 | |
| LocalVariableName | 0 | |
| MemberName | 0 | |
| MethodName | 0 | |
| PackageName | 0 | |
| ParameterName | 0 | |
| StaticVariableName | 0 | |
| TypeName | 0 | |
| AvoidStarImport | 2 | |
| IllegalImport | 0 | |
| RedundantImport | 0 | |
| UnusedImports | 1 | |
| LineLength | 4 | |
| MethodLength | 0 | |
| ParameterNumber | 0 | |
| EmptyForIteratorPad | 0 | |
| MethodParamPad | 0 | |
| NoWhitespaceAfter | 1 | |
| NoWhitespaceBefore | 0 | |
| OperatorWrap | 0 | |
| ParenPad | 0 | |
| TypecastParenPad | 0 | |
| WhitespaceAfter | 1 | |
| WhitespaceAround | 1 | |
| ModifierOrder | 0 | |
| RedundantModifier | 0 | |
| AvoidNestedBlocks | 0 | |
| EmptyBlock | 1 | |
| LeftCurly | 0 | |
| NeedBraces | 0 | |
| RightCurly | 0 | |
| AvoidInlineConditionals | 4 | |
| EmptyStatement | 0 | |
| EqualsHashCode | 0 | |
| HiddenField | 4 | |
| IllegalInstantiation | 0 | |
| InnerAssignment | 0 | |
| MagicNumber | 0 | |
| MissingSwitchDefault | 0 | |
| RedundantThrows | 3 | |
| SimplifyBooleanExpression | 0 | |
| SimplifyBooleanReturn | 0 | |
| DesignForExtension | 17 | |
| FinalClass | 0 | |
| HideUtilityClassConstructor | 0 | |
| InterfaceIsType | 0 | |
| VisibilityModifier | 10 | |
| ArrayTypeStyle | 0 | |
| FinalParameters | 22 | |
| TodoComment | 0 | |
| UpperEll | 0 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| Unused import - com.munkei.exception.ArgumentParsingException. | 22 | |
| '}' is not preceded with whitespace. | 82 | |
| Line is longer than 80 characters (found 152). | 121 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| Using the '.*' form of import should be avoided - org.junit.Assert.*. | 24 | |
| Method 'test' is not designed for extension - needs to be abstract, final or empty. | 34 | |
| Missing a Javadoc comment. | 34 | |
| '{' is followed by whitespace. | 40 | |
| Missing a Javadoc comment. | 52 | |
| Missing a Javadoc comment. | 54 | |
| Variable 'field' must be private and have accessor methods. | 63 |
| Violation | Message | Line |
|---|---|---|
| Parameter string should be final. | 47 | |
| Parameter string should be final. | 63 | |
| Missing a Javadoc comment. | 72 | |
| Missing a Javadoc comment. | 74 | |
| Parameter subject should be final. | 83 | |
| Expected @throws tag for 'NullPointerException'. | 84 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 84 | |
| Method 'parse' is not designed for extension - needs to be abstract, final or empty. | 114 | |
| Parameter args should be final. | 114 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 115 | |
| Method 'setUsageHeader' is not designed for extension - needs to be abstract, final or empty. | 168 | |
| Parameter usageHeader should be final. | 168 | |
| 'usageHeader' hides a field. | 168 | |
| Method 'printUsage' is not designed for extension - needs to be abstract, final or empty. | 184 | |
| Parameter output should be final. | 184 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 185 | |
| Avoid inline conditionals. | 212 | |
| Avoid inline conditionals. | 219 | |
| Method 'printUsage' is not designed for extension - needs to be abstract, final or empty. | 248 | |
| Missing a Javadoc comment. | 252 | |
| Parameter name should be final. | 252 | |
| Parameter it should be final. | 253 | |
| Missing a Javadoc comment. | 260 | |
| Parameter name should be final. | 260 |
| Violation | Message | Line |
|---|---|---|
| Using the '.*' form of import should be avoided - org.junit.Assert.*. | 29 | |
| Missing a Javadoc comment. | 39 | |
| Method 'testUsage' is not designed for extension - needs to be abstract, final or empty. | 42 | |
| Missing a Javadoc comment. | 42 | |
| Method 'testParse' is not designed for extension - needs to be abstract, final or empty. | 54 | |
| Missing a Javadoc comment. | 54 | |
| Missing a Javadoc comment. | 118 | |
| Missing a Javadoc comment. | 120 | |
| Variable 'stringField' must be private and have accessor methods. | 128 | |
| Missing a Javadoc comment. | 130 | |
| Variable 'booleanField' must be private and have accessor methods. | 136 | |
| Missing a Javadoc comment. | 138 | |
| Variable 'file' must be private and have accessor methods. | 140 | |
| Missing a Javadoc comment. | 142 | |
| Variable 'arraylist' must be private and have accessor methods. | 147 | |
| Missing a Javadoc comment. | 149 | |
| Variable 'set' must be private and have accessor methods. | 154 | |
| Missing a Javadoc comment. | 156 | |
| Variable 'level' must be private and have accessor methods. | 162 | |
| Missing a Javadoc comment. | 164 | |
| Variable 'x' must be private and have accessor methods. | 166 | |
| Missing a Javadoc comment. | 168 | |
| Variable 'y' must be private and have accessor methods. | 170 | |
| Missing a Javadoc comment. | 172 | |
| Variable 'z' must be private and have accessor methods. | 174 |
| Violation | Message | Line |
|---|---|---|
| Missing a Javadoc comment. | 43 | |
| Missing a Javadoc comment. | 45 | |
| Missing a Javadoc comment. | 47 | |
| Missing a Javadoc comment. | 49 | |
| Parameter subject should be final. | 49 | |
| 'subject' hides a field. | 49 | |
| Parameter field should be final. | 49 | |
| 'field' hides a field. | 49 | |
| Method 'set' is not designed for extension - needs to be abstract, final or empty. | 65 | |
| Missing a Javadoc comment. | 65 | |
| Parameter name should be final. | 65 | |
| Parameter it should be final. | 66 | |
| Avoid inline conditionals. | 69 | |
| Line is longer than 80 characters (found 85). | 93 | |
| Line is longer than 80 characters (found 106). | 101 | |
| Extra HTML tag found: </dt> | 155 | |
| Extra HTML tag found: </dd> | 156 | |
| Extra HTML tag found: </dt> | 157 | |
| Extra HTML tag found: </dt> | 158 | |
| Extra HTML tag found: </dt> | 159 | |
| Extra HTML tag found: </dt> | 160 | |
| Extra HTML tag found: </dt> | 161 | |
| Extra HTML tag found: </dd> | 163 | |
| Parameter value should be final. | 177 | |
| Parameter to should be final. | 177 | |
| Expected @throws tag for 'ArgumentParsingException'. | 178 | |
| Line is longer than 80 characters (found 81). | 219 | |
| Must have at least one statement. | 221 | |
| Method 'takesValue' is not designed for extension - needs to be abstract, final or empty. | 229 | |
| Missing a Javadoc comment. | 229 | |
| Method 'isBoolean' is not designed for extension - needs to be abstract, final or empty. | 233 | |
| Missing a Javadoc comment. | 233 | |
| Method 'hasName' is not designed for extension - needs to be abstract, final or empty. | 237 | |
| Missing a Javadoc comment. | 237 | |
| Parameter name should be final. | 237 | |
| Method 'getCommandLineOption' is not designed for extension - needs to be abstract, final or empty. | 241 | |
| Missing a Javadoc comment. | 241 | |
| Method 'getNames' is not designed for extension - needs to be abstract, final or empty. | 245 | |
| Missing a Javadoc comment. | 245 | |
| Method 'getField' is not designed for extension - needs to be abstract, final or empty. | 266 | |
| Missing a Javadoc comment. | 266 | |
| Method 'isCollection' is not designed for extension - needs to be abstract, final or empty. | 270 | |
| Missing a Javadoc comment. | 270 | |
| Method 'getEffectiveClass' is not designed for extension - needs to be abstract, final or empty. | 274 | |
| Missing a Javadoc comment. | 274 | |
| Avoid inline conditionals. | 276 |
| Violation | Message | Line |
|---|---|---|
| Missing a Javadoc comment. | 33 | |
| Missing a Javadoc comment. | 35 | |
| Parameter cause should be final. | 35 | |
| Parameter message should be final. | 36 | |
| Parameter arguments should be final. | 37 | |
| Missing a Javadoc comment. | 41 | |
| Parameter message should be final. | 41 | |
| Parameter arguments should be final. | 41 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| Missing a Javadoc comment. | 33 | |
| Missing a Javadoc comment. | 35 | |
| Missing a Javadoc comment. | 37 | |
| Parameter option should be final. | 37 | |
| 'option' hides a field. | 37 | |
| Method 'getOption' is not designed for extension - needs to be abstract, final or empty. | 42 | |
| Missing a Javadoc comment. | 42 |