Package com.qulice.checkstyle
Class ImportCohesionCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
-
- com.qulice.checkstyle.ImportCohesionCheck
-
- All Implemented Interfaces:
Configurable
,Contextualizable
,FileSetCheck
public final class ImportCohesionCheck extends 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.api.AutomaticBean
AutomaticBean.OutputStreamOptions
-
-
Constructor Summary
Constructors Constructor Description ImportCohesionCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processFiltered(File file, FileText lines)
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addMessages, beginProcessing, destroy, finishProcessing, fireErrors, getFileExtensions, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
-
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.api.AutomaticBean
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
-
-
-
-
Method Detail
-
processFiltered
public void processFiltered(File file, FileText lines)
- Specified by:
processFiltered
in classAbstractFileSetCheck
-
-