Package com.qulice.checkstyle
Class ImportCohesionCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.AbstractAutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
com.qulice.checkstyle.ImportCohesionCheck
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable
,com.puppycrawl.tools.checkstyle.api.Contextualizable
,com.puppycrawl.tools.checkstyle.api.FileSetCheck
public final class ImportCohesionCheck
extends com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
Check if import lines are all together without any empty lines or comments.
All import
instructions shall stay together, without any empty
lines between them. If you need to separate them because the list is too
big - it's time to refactor the class and make is smaller.
- Since:
- 0.3
-
Nested Class Summary
Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.AbstractAutomaticBean
com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
processFiltered
(File file, com.puppycrawl.tools.checkstyle.api.FileText lines) Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addViolations, beginProcessing, destroy, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getTabWidth, getViolations, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidth
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
Methods inherited from class com.puppycrawl.tools.checkstyle.AbstractAutomaticBean
configure, contextualize, getConfiguration, setupChild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Configurable
configure
Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Contextualizable
contextualize
-
Constructor Details
-
ImportCohesionCheck
public ImportCohesionCheck()
-
-
Method Details
-
processFiltered
- Specified by:
processFiltered
in classcom.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
-