Class SpringHeaderCheck
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.check.SpringHeaderCheck
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable,com.puppycrawl.tools.checkstyle.api.Contextualizable,com.puppycrawl.tools.checkstyle.api.FileSetCheck
public class SpringHeaderCheck
extends com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
Checks that the source headers follow Spring conventions.
- 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprocessFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText fileText) voidsetBlankLineAfter(boolean blankLineAfter) voidsetCharset(String charset) voidsetHeaderCopyrightPattern(String headerCopyrightPattern) voidsetHeaderFile(URI headerFile) voidsetHeaderType(String headerType) voidsetPackageInfoHeaderFile(URI packageInfoHeaderFile) voidsetPackageInfoHeaderType(String packageInfoHeaderType) 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, 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, getConfiguration, setupChildMethods 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
-
Field Details
-
DEFAULT_HEADER_TYPE
The default header type.- See Also:
-
DEFAULT_HEADER_COPYRIGHT_PATTERN
The default header copyright pattern.- See Also:
-
-
Constructor Details
-
SpringHeaderCheck
public SpringHeaderCheck()
-
-
Method Details
-
finishLocalSetup
protected void finishLocalSetup() throws com.puppycrawl.tools.checkstyle.api.CheckstyleException- Overrides:
finishLocalSetupin classcom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter- Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-
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
-
setCharset
- Throws:
UnsupportedEncodingException
-
setHeaderType
-
setHeaderFile
public void setHeaderFile(URI headerFile) throws com.puppycrawl.tools.checkstyle.api.CheckstyleException - Throws:
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-
setHeaderCopyrightPattern
-
setPackageInfoHeaderType
-
setPackageInfoHeaderFile
-
setBlankLineAfter
public void setBlankLineAfter(boolean blankLineAfter)
-