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 | Error |
NewlineAtEndOfFile | 0 | Error |
Translation | 0 | Error |
FileLength | 0 | Error |
FileTabCharacter
|
0 | Error |
RegexpSingleline
|
0 | Error |
JavadocMethod | 22 | Error |
JavadocType | 2 | Error |
JavadocVariable | 18 | Error |
JavadocStyle | 8 | Error |
ConstantName | 0 | Error |
LocalFinalVariableName | 0 | Error |
LocalVariableName | 0 | Error |
MemberName | 0 | Error |
MethodName | 0 | Error |
PackageName | 0 | Error |
ParameterName | 0 | Error |
StaticVariableName | 0 | Error |
TypeName | 0 | Error |
AvoidStarImport | 2 | Error |
IllegalImport | 0 | Error |
RedundantImport | 0 | Error |
UnusedImports | 1 | Error |
LineLength | 4 | Error |
MethodLength | 0 | Error |
ParameterNumber | 0 | Error |
EmptyForIteratorPad | 0 | Error |
MethodParamPad | 0 | Error |
NoWhitespaceAfter | 1 | Error |
NoWhitespaceBefore | 0 | Error |
OperatorWrap | 0 | Error |
ParenPad | 0 | Error |
TypecastParenPad | 0 | Error |
WhitespaceAfter | 1 | Error |
WhitespaceAround | 1 | Error |
ModifierOrder | 0 | Error |
RedundantModifier | 0 | Error |
AvoidNestedBlocks | 0 | Error |
EmptyBlock | 1 | Error |
LeftCurly | 0 | Error |
NeedBraces | 0 | Error |
RightCurly | 0 | Error |
AvoidInlineConditionals | 4 | Error |
EmptyStatement | 0 | Error |
EqualsHashCode | 0 | Error |
HiddenField | 4 | Error |
IllegalInstantiation | 0 | Error |
InnerAssignment | 0 | Error |
MagicNumber | 0 | Error |
MissingSwitchDefault | 0 | Error |
RedundantThrows | 3 | Error |
SimplifyBooleanExpression | 0 | Error |
SimplifyBooleanReturn | 0 | Error |
DesignForExtension | 17 | Error |
FinalClass | 0 | Error |
HideUtilityClassConstructor | 0 | Error |
InterfaceIsType | 0 | Error |
VisibilityModifier | 10 | Error |
ArrayTypeStyle | 0 | Error |
FinalParameters | 22 | Error |
TodoComment | 0 | Error |
UpperEll | 0 | Error |
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 |