Package com.qulice.checkstyle
Class CheckstyleValidator
java.lang.Object
com.qulice.checkstyle.CheckstyleValidator
- All Implemented Interfaces:
ResourceValidator
Validator with Checkstyle.
- Since:
- 0.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNonExcludedFiles(Collection<File> files) Filters out excluded files from further validation.name()Name of this validator.intrules()How many rules this validator applies to every file it reads.validate(Collection<File> files) Validate and throws exception if there are any problems.
-
Constructor Details
-
CheckstyleValidator
Constructor.- Parameters:
env- Environment to use
-
-
Method Details
-
validate
Description copied from interface:ResourceValidatorValidate and throws exception if there are any problems.- Specified by:
validatein interfaceResourceValidator- Parameters:
files- Files to validate- Returns:
- Validation results
-
name
Description copied from interface:ResourceValidatorName of this validator.- Specified by:
namein interfaceResourceValidator- Returns:
- Name of this validator
-
rules
public int rules()Description copied from interface:ResourceValidatorHow many rules this validator applies to every file it reads.- Specified by:
rulesin interfaceResourceValidator- Returns:
- Number of rules, or zero when the validator cannot tell
-
getNonExcludedFiles
Filters out excluded files from further validation.- Parameters:
files- Files to validate- Returns:
- List of relevant files
-