Checkstyle Results

The following document contains the results of Checkstyle 12.1.0 with checkstyle-4space.xml ruleset.

Summary

Files  Info  Warnings  Errors
57 0 122 0

Files

File  I  W  E
amd/Quantize.java 0 29 0
org/carrot2/labs/smartsprites/SmartSprites.java 0 1 0
org/carrot2/labs/smartsprites/SmartSpritesParameters.java 0 8 0
org/carrot2/labs/smartsprites/SmartSpritesParametersTest.java 0 4 0
org/carrot2/labs/smartsprites/SpriteBuilder.java 0 4 0
org/carrot2/labs/smartsprites/SpriteBuilderTest.java 0 5 0
org/carrot2/labs/smartsprites/SpriteDirectiveOccurrenceCollector.java 0 4 0
org/carrot2/labs/smartsprites/SpriteDirectiveOccurrenceCollectorTest.java 0 3 0
org/carrot2/labs/smartsprites/SpriteImage.java 0 2 0
org/carrot2/labs/smartsprites/SpriteImageBuilder.java 0 6 0
org/carrot2/labs/smartsprites/SpriteImageDirective.java 0 2 0
org/carrot2/labs/smartsprites/SpriteImageDirectiveTest.java 0 3 0
org/carrot2/labs/smartsprites/SpriteImageRenderer.java 0 1 0
org/carrot2/labs/smartsprites/SpriteLayoutProperties.java 0 2 0
org/carrot2/labs/smartsprites/SpriteReferenceDirective.java 0 2 0
org/carrot2/labs/smartsprites/SpriteReferenceDirectiveTest.java 0 6 0
org/carrot2/labs/smartsprites/SpriteReferenceOccurrence.java 0 1 0
org/carrot2/labs/smartsprites/TestWithMemoryMessageSink.java 0 1 0
org/carrot2/labs/smartsprites/ant/SmartSpritesTask.java 0 1 0
org/carrot2/labs/smartsprites/css/CssSyntaxUtils.java 0 1 0
org/carrot2/labs/smartsprites/css/CssSyntaxUtilsTest.java 0 1 0
org/carrot2/labs/smartsprites/message/Message.java 0 11 0
org/carrot2/labs/smartsprites/message/MessageLog.java 0 1 0
org/carrot2/labs/smartsprites/message/PrintStreamMessageSink.java 0 1 0
org/carrot2/labs/smartsprites/resource/FileSystemResourceHandler.java 0 1 0
org/carrot2/labs/smartsprites/resource/ResourceHandler.java 0 1 0
org/carrot2/labs/test/Assertions.java 0 2 0
org/carrot2/labs/test/BufferedImageAssertion.java 0 1 0
org/carrot2/labs/test/CssPropertyListAssertion.java 0 2 0
org/carrot2/labs/test/MessageListAssertion.java 0 2 0
org/carrot2/util/BufferedImageTestBase.java 0 1 0
org/carrot2/util/BufferedImageUtils.java 0 1 0
org/carrot2/util/BufferedImageUtilsTest.java 0 1 0
org/carrot2/util/ColorQuantizer.java 0 2 0
org/carrot2/util/ColorQuantizerTest.java 0 3 0
org/carrot2/util/FileUtils.java 0 1 0
org/carrot2/util/PathUtils.java 0 4 0

Rules

Category Rule Violations Severity
coding MatchXpath
  • query: "//SINGLE_LINE_COMMENT[./COMMENT_CONTENT[not(starts-with(@text, ' ')) and not(starts-with(@text, '/')) and not(@text = '\n') and not(ends-with(@text, '//\n'))]]"
  • id: "singleLineCommentStartWithSpace"
1  Warning
OverloadMethodsDeclarationOrder 6  Warning
imports CustomImportOrder
  • separateLineBetweenGroups: "true"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
  • tokens: "IMPORT, STATIC_IMPORT, PACKAGE_DEF"
51  Warning
javadoc InvalidJavadocPosition 1  Warning
JavadocParagraph
  • allowNewlineParagraph: "false"
37  Warning
naming AbbreviationAsWordInName
  • tokens: "CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF, PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF, RECORD_COMPONENT_DEF"
  • ignoreFinal: "false"
  • allowedAbbreviations: "XML,URL"
  • allowedAbbreviationLength: "0"
3  Warning
sizes LineLength
  • fileExtensions: "java"
  • max: "120"
  • ignorePattern: "^package.*|^import.*|href\s*=\s*"[^"]*"|http://|https://|ftp://"
22  Error
whitespace GenericWhitespace 1  Warning

Details

amd/Quantize.java

Severity Category Rule Message Line
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 41
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 41
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 45
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 45
 Warning javadoc InvalidJavadocPosition Javadoc comment is placed in the wrong location. 82
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 396
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 396
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 401
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 401
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 405
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 405
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 407
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 407
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 410
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 410
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 459
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 459
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 462
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 462
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 490
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 490
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 494
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 494
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 498
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 498
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 732
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 732
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 755
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 755

org/carrot2/labs/smartsprites/SmartSprites.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.MessageLog' 41

org/carrot2/labs/smartsprites/SmartSpritesParameters.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.Message.MessageLevel' 45
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 80
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 80
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 82
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 82
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 85
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 85
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '311'. 421

org/carrot2/labs/smartsprites/SmartSpritesParametersTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.io.File' 45
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.Message' 50
 Warning naming AbbreviationAsWordInName Abbreviation in name 'testValidateOutputDirIsNotADirectory' must contain no more than '1' consecutive capital letters. 138
 Warning naming AbbreviationAsWordInName Abbreviation in name 'testValidateDocumentRootDirIsNotADirectory' must contain no more than '1' consecutive capital letters. 157

org/carrot2/labs/smartsprites/SpriteBuilder.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.io.BufferedReader' 44
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.LevelCounterMessageSink' 60
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '129'. 202
 Warning sizes LineLength Line is longer than 120 characters (found 131). 225

org/carrot2/labs/smartsprites/SpriteBuilderTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.awt.Dimension' 44
 Warning imports CustomImportOrder Extra separation in import group before 'javax.imageio.ImageIO' 52
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.io.FileUtils' 54
 Warning coding MatchXpath '//' must be followed by a whitespace. 637
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '915'. 939

org/carrot2/labs/smartsprites/SpriteDirectiveOccurrenceCollector.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.io.BufferedReader' 42
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 51
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '98'. 195
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '143'. 221

org/carrot2/labs/smartsprites/SpriteDirectiveOccurrenceCollectorTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 127). 70
 Warning sizes LineLength Line is longer than 120 characters (found 128). 92
 Warning sizes LineLength Line is longer than 120 characters (found 132). 93

org/carrot2/labs/smartsprites/SpriteImage.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.awt.image.BufferedImage' 41
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective.SpriteUidType' 47

org/carrot2/labs/smartsprites/SpriteImageBuilder.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.awt.image.BufferedImage' 42
 Warning imports CustomImportOrder Extra separation in import group before 'javax.imageio.ImageIO' 54
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.math3.util.ArithmeticUtils' 56
 Warning sizes LineLength Line is longer than 120 characters (found 141). 125
 Warning sizes LineLength Line is longer than 120 characters (found 131). 127
 Warning whitespace GenericWhitespace GenericWhitespace '>' is followed by whitespace. 190

org/carrot2/labs/smartsprites/SpriteImageDirective.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.awt.Color' 43
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 50

org/carrot2/labs/smartsprites/SpriteImageDirectiveTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective.SpriteUidType' 46
 Warning sizes LineLength Line is longer than 120 characters (found 156). 343
 Warning sizes LineLength Line is longer than 120 characters (found 157). 367

org/carrot2/labs/smartsprites/SpriteImageRenderer.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SmartSpritesParameters.PngDepth' 42

org/carrot2/labs/smartsprites/SpriteLayoutProperties.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.util.Locale' 42
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective.SpriteImageLayout' 46

org/carrot2/labs/smartsprites/SpriteReferenceDirective.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.util.Map' 42
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 45

org/carrot2/labs/smartsprites/SpriteReferenceDirectiveTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.awt.Color' 46
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective.SpriteImageFormat' 49
 Warning sizes LineLength Line is longer than 120 characters (found 141). 256
 Warning sizes LineLength Line is longer than 120 characters (found 140). 276
 Warning sizes LineLength Line is longer than 120 characters (found 167). 337
 Warning sizes LineLength Line is longer than 120 characters (found 169). 357

org/carrot2/labs/smartsprites/SpriteReferenceOccurrence.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective.SpriteImageLayout' 41

org/carrot2/labs/smartsprites/TestWithMemoryMessageSink.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.MemoryMessageSink' 41

org/carrot2/labs/smartsprites/ant/SmartSpritesTask.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.tools.ant.BuildException' 45

org/carrot2/labs/smartsprites/css/CssSyntaxUtils.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.Message' 49

org/carrot2/labs/smartsprites/css/CssSyntaxUtilsTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.TestWithMemoryMessageSink' 46

org/carrot2/labs/smartsprites/message/Message.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SpriteImageDirective' 42
 Warning sizes LineLength Line is longer than 120 characters (found 121). 170
 Warning sizes LineLength Line is longer than 120 characters (found 129). 254
 Warning sizes LineLength Line is longer than 120 characters (found 121). 258
 Warning sizes LineLength Line is longer than 120 characters (found 131). 266
 Warning sizes LineLength Line is longer than 120 characters (found 145). 270
 Warning sizes LineLength Line is longer than 120 characters (found 133). 286
 Warning sizes LineLength Line is longer than 120 characters (found 129). 290
 Warning sizes LineLength Line is longer than 120 characters (found 174). 294
 Warning sizes LineLength Line is longer than 120 characters (found 125). 298
 Warning sizes LineLength Line is longer than 120 characters (found 124). 302

org/carrot2/labs/smartsprites/message/MessageLog.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.util.List' 41

org/carrot2/labs/smartsprites/message/PrintStreamMessageSink.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.message.Message.MessageLevel' 41

org/carrot2/labs/smartsprites/resource/FileSystemResourceHandler.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.io.FilenameUtils' 52

org/carrot2/labs/smartsprites/resource/ResourceHandler.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.SmartSpritesParameters' 45

org/carrot2/labs/test/Assertions.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 42
 Warning coding OverloadMethodsDeclarationOrder All overloaded methods should be placed next to each other. Previous overloaded method located at line '82'. 106

org/carrot2/labs/test/BufferedImageAssertion.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 44

org/carrot2/labs/test/CssPropertyListAssertion.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.util.List' 44
 Warning imports CustomImportOrder Extra separation in import group before 'org.carrot2.labs.smartsprites.css.CssProperty' 46

org/carrot2/labs/test/MessageListAssertion.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.util.ArrayList' 42
 Warning imports CustomImportOrder Extra separation in import group before 'org.assertj.core.api.Assertions' 47

org/carrot2/util/BufferedImageTestBase.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'javax.imageio.ImageIO' 42

org/carrot2/util/BufferedImageUtils.java

Severity Category Rule Message Line
 Warning naming AbbreviationAsWordInName Abbreviation in name 'imgRGB' must contain no more than '1' consecutive capital letters. 238

org/carrot2/util/BufferedImageUtilsTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.junit.jupiter.api.Test' 46

org/carrot2/util/ColorQuantizer.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'amd.Quantize' 45
 Warning imports CustomImportOrder Wrong lexicographical order for 'amd.Quantize' import. Should be before 'java.awt.image.WritableRaster'. 45

org/carrot2/util/ColorQuantizerTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.junit.jupiter.api.Test' 45
 Warning imports CustomImportOrder Extra separation in import group before 'amd.Quantize' 47
 Warning imports CustomImportOrder Wrong lexicographical order for 'amd.Quantize' import. Should be before 'org.junit.jupiter.api.Test'. 47

org/carrot2/util/FileUtils.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.io.FilenameUtils' 45

org/carrot2/util/PathUtils.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.io.File' 41
 Warning javadoc JavadocParagraph <p> tag should be placed immediately before the first word, with no space after. 47
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 47
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 79