Package io.spring.javaformat.checkstyle
Class SpringChecks
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
io.spring.javaformat.checkstyle.SpringChecks
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable,com.puppycrawl.tools.checkstyle.api.Contextualizable,com.puppycrawl.tools.checkstyle.api.ExternalResourceHolder,com.puppycrawl.tools.checkstyle.api.FileSetCheck
public class SpringChecks
extends com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
implements com.puppycrawl.tools.checkstyle.api.ExternalResourceHolder
FileSetCheck that applies Spring checkstype rules.- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginProcessing(String charset) voidprotected voidprocessFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText fileText) voidsetAvoidStaticImportExcludes(String[] avoidStaticImportExcludes) voidsetClassLoader(ClassLoader classLoader) Sets classLoader to load class.voidsetExcludes(String... excludes) voidsetHeaderCopyrightPattern(String headerCopyrightPattern) voidsetHeaderFile(String headerFile) voidsetHeaderType(String headerType) voidsetModuleFactory(com.puppycrawl.tools.checkstyle.ModuleFactory moduleFactory) Sets the module factory for creating child modules (Checks).voidsetProjectRootPackage(String projectRootPackage) voidsetupChild(com.puppycrawl.tools.checkstyle.api.Configuration configuration) Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addViolations, destroy, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getTabWidth, getViolations, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidthMethods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityMethods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, getConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.puppycrawl.tools.checkstyle.api.Configurable
configureMethods inherited from interface com.puppycrawl.tools.checkstyle.api.Contextualizable
contextualize
-
Constructor Details
-
SpringChecks
public SpringChecks()
-
-
Method Details
-
setClassLoader
Sets classLoader to load class.- Parameters:
classLoader- class loader to resolve classes with.
-
setModuleFactory
public void setModuleFactory(com.puppycrawl.tools.checkstyle.ModuleFactory moduleFactory) Sets the module factory for creating child modules (Checks).- Parameters:
moduleFactory- the factory
-
finishLocalSetup
public void finishLocalSetup()- Overrides:
finishLocalSetupin classcom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
getExternalResourceLocations
- Specified by:
getExternalResourceLocationsin interfacecom.puppycrawl.tools.checkstyle.api.ExternalResourceHolder
-
beginProcessing
- Specified by:
beginProcessingin interfacecom.puppycrawl.tools.checkstyle.api.FileSetCheck- Overrides:
beginProcessingin classcom.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
-
processFiltered
protected void processFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText fileText) throws com.puppycrawl.tools.checkstyle.api.CheckstyleException - Specified by:
processFilteredin classcom.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck- Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-
setupChild
public void setupChild(com.puppycrawl.tools.checkstyle.api.Configuration configuration) throws com.puppycrawl.tools.checkstyle.api.CheckstyleException - Overrides:
setupChildin classcom.puppycrawl.tools.checkstyle.api.AutomaticBean- Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-
setHeaderType
-
setHeaderCopyrightPattern
-
setHeaderFile
-
setAvoidStaticImportExcludes
-
setProjectRootPackage
-
setExcludes
-