Checkstyle Results

The following document contains the results of Checkstyle 9.3 with Checkstyle.xml ruleset.

Summary

Files  Info  Warnings  Errors
39 0 44 0

Files

File  I  W  E
uk/pallas/systems/typr/domain/entities/v1/FieldDefinitionDomain.java 0 1 0
uk/pallas/systems/typr/entities/v1/validation/ValidationRuleConstants.java 0 1 0
uk/pallas/systems/typr/rest/CategoriesController.java 0 3 0
uk/pallas/systems/typr/rest/FieldDefinitionsController.java 0 10 0
uk/pallas/systems/typr/rest/entities/v1/FieldDefinitionDTO.java 0 2 0
uk/pallas/systems/typr/runnable/Application.java 0 2 0
uk/pallas/systems/typr/services/FieldDefinitionService.java 0 3 0
uk/pallas/systems/typr/services/FieldDefinitionServiceImpl.java 0 8 0
uk/pallas/systems/typr/services/impl/CountryServiceImpl.java 0 1 0
uk/pallas/systems/typr/services/impl/UnitsServiceImpl.java 0 13 0

Rules

Category Rule Violations Severity
coding AvoidNoArgumentSuperConstructorCall 1  Warning
FinalLocalVariable
  • tokens: "VARIABLE_DEF,PARAMETER_DEF"
4  Warning
HiddenField 1  Warning
MagicNumber 2  Warning
MissingCtor 4  Warning
MultipleStringLiterals 2  Warning
design HideUtilityClassConstructor 1  Warning
imports UnusedImports 1  Warning
indentation CommentsIndentation 1  Warning
Indentation
  • throwsIndent: "2"
  • arrayInitIndent: "2"
  • caseIndent: "2"
  • basicOffset: "2"
  • lineWrappingIndentation: "2"
5  Warning
javadoc InvalidJavadocPosition 3  Warning
JavadocContentLocation 3  Warning
JavadocMethod 6  Warning
JavadocStyle 2  Warning
JavadocVariable 3  Warning
misc FinalParameters 4  Warning
UncommentedMain 1  Warning

Details

uk/pallas/systems/typr/domain/entities/v1/FieldDefinitionDomain.java

Severity Category Rule Message Line
 Warning coding MagicNumber '100' is a magic number. 58

uk/pallas/systems/typr/entities/v1/validation/ValidationRuleConstants.java

Severity Category Rule Message Line
 Warning coding AvoidNoArgumentSuperConstructorCall Unnecessary call to superclass constructor with no arguments. 25

uk/pallas/systems/typr/rest/CategoriesController.java

Severity Category Rule Message Line
 Warning coding MissingCtor Class should define a constructor. 13
 Warning javadoc InvalidJavadocPosition Javadoc comment is placed in the wrong location. 32
 Warning indentation CommentsIndentation Block comment has incorrect indentation level 1, expected is 2, indentation should be the same level as line 28. 37

uk/pallas/systems/typr/rest/FieldDefinitionsController.java

Severity Category Rule Message Line
 Warning coding MissingCtor Class should define a constructor. 40
 Warning javadoc JavadocVariable Missing a Javadoc comment. 54
 Warning javadoc JavadocVariable Missing a Javadoc comment. 57
 Warning coding MultipleStringLiterals The String "No definitions stored within Typr" appears 2 times in the file. 112
 Warning indentation Indentation 'annotation array initialization' child has incorrect indentation level 4, expected level should be 6. 134
 Warning indentation Indentation 'annotation array initialization' child has incorrect indentation level 4, expected level should be 6. 205
 Warning coding MultipleStringLiterals The String "Object had incorrect unit type" appears 2 times in the file. 213
 Warning indentation Indentation 'annotation array initialization' child has incorrect indentation level 4, expected level should be 6. 236
 Warning indentation Indentation 'annotation array initialization' child has incorrect indentation level 4, expected level should be 6. 272
 Warning indentation Indentation 'annotation array initialization' child has incorrect indentation level 4, expected level should be 6. 299

uk/pallas/systems/typr/rest/entities/v1/FieldDefinitionDTO.java

Severity Category Rule Message Line
 Warning coding MagicNumber '100' is a magic number. 55
 Warning coding HiddenField 'rules' hides a field. 96

uk/pallas/systems/typr/runnable/Application.java

Severity Category Rule Message Line
 Warning design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 16
 Warning misc UncommentedMain Uncommented main method found. 34

uk/pallas/systems/typr/services/FieldDefinitionService.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Expected @param tag for 'string'. 21
 Warning javadoc JavadocStyle First sentence should end with a period. 23
 Warning javadoc JavadocStyle First sentence should end with a period. 30

uk/pallas/systems/typr/services/FieldDefinitionServiceImpl.java

Severity Category Rule Message Line
 Warning coding MissingCtor Class should define a constructor. 13
 Warning javadoc JavadocVariable Missing a Javadoc comment. 16
 Warning javadoc JavadocContentLocation Javadoc content should start from the next line after /**. 19
 Warning javadoc JavadocMethod @return tag should be present and have description. 23
 Warning javadoc JavadocContentLocation Javadoc content should start from the next line after /**. 32
 Warning javadoc JavadocMethod @return tag should be present and have description. 37
 Warning javadoc JavadocContentLocation Javadoc content should start from the next line after /**. 46
 Warning javadoc JavadocMethod @return tag should be present and have description. 51

uk/pallas/systems/typr/services/impl/CountryServiceImpl.java

Severity Category Rule Message Line
 Warning coding MissingCtor Class should define a constructor. 13

uk/pallas/systems/typr/services/impl/UnitsServiceImpl.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - javax.measure.quantity.Length. 9
 Warning javadoc InvalidJavadocPosition Javadoc comment is placed in the wrong location. 67
 Warning javadoc InvalidJavadocPosition Javadoc comment is placed in the wrong location. 73
 Warning misc FinalParameters Parameter value should be final. 89
 Warning coding FinalLocalVariable Variable 'value' should be declared final. 89
 Warning misc FinalParameters Parameter name should be final. 89
 Warning coding FinalLocalVariable Variable 'name' should be declared final. 89
 Warning misc FinalParameters Parameter text should be final. 89
 Warning coding FinalLocalVariable Variable 'text' should be declared final. 89
 Warning misc FinalParameters Parameter isLabel should be final. 89
 Warning coding FinalLocalVariable Variable 'isLabel' should be declared final. 89
 Warning javadoc JavadocMethod Unused @param tag for 'units'. 112
 Warning javadoc JavadocMethod Expected @param tag for 'values'. 114