com.puppycrawl.tools.checkstyle.checks.header
Class CrossLanguageRegexpHeaderCheck
- Configurable, Contextualizable, FileSetCheck
public final class CrossLanguageRegexpHeaderCheck
A FileSetCheck similar to
RegexpHeaderCheck
,
but works for all text files, not just java code.
CrossLanguageRegexpHeaderCheck() - Creates a new instance and initializes the file extentions
to the default value, which represents most of the typical
text files that require a copyright header.
|
protected void | finishLocalSetup() - Checks that required args were specified.
|
void | process(File[] aFiles) -
|
void | setHeader(String aHeader) - Set the header to check against.
|
void | setHeaderFile(String aFileName) - Set the header file to check against.
|
void | setMultiLines(int[] aList) - Set the lines numbers to repeat in the header check.
|
destroy , filter , fireErrors , getCharset , getMessageCollector , getMessageDispatcher , log , log , setCharset , setFileExtensions , setMessageDispatcher |
getId , getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setId , setSeverity |
CrossLanguageRegexpHeaderCheck
public CrossLanguageRegexpHeaderCheck()
Creates a new instance and initializes the file extentions
to the default value, which represents most of the typical
text files that require a copyright header.
setHeader
public void setHeader(String aHeader)
Set the header to check against. Individual lines in the header
must be separated by '\n' characters.
aHeader
- header content to check against.
setHeaderFile
public void setHeaderFile(String aFileName)
throws ConversionException
Set the header file to check against.
aFileName
- the file that contains the header to check against.
setMultiLines
public void setMultiLines(int[] aList)
Set the lines numbers to repeat in the header check.
aList
- comma separated list of line numbers to repeat in header.