Package com.qulice.checkstyle
Class CheckstyleValidator
- java.lang.Object
-
- com.qulice.checkstyle.CheckstyleValidator
-
- All Implemented Interfaces:
ResourceValidator
public final class CheckstyleValidator extends Object implements ResourceValidator
Validator with Checkstyle.- Since:
- 0.3
- Suppressed Checkstyle violations:
- ClassDataAbstractionCoupling (260 lines)
-
-
Constructor Summary
Constructors Constructor Description CheckstyleValidator(Environment env)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<File>
getNonExcludedFiles(Collection<File> files)
Filters out excluded files from further validation.String
name()
Collection<Violation>
validate(Collection<File> files)
-
-
-
Constructor Detail
-
CheckstyleValidator
public CheckstyleValidator(Environment env)
Constructor.- Parameters:
env
- Environment to use.
-
-
Method Detail
-
validate
public Collection<Violation> validate(Collection<File> files)
- Specified by:
validate
in interfaceResourceValidator
-
name
public String name()
- Specified by:
name
in interfaceResourceValidator
-
getNonExcludedFiles
public List<File> getNonExcludedFiles(Collection<File> files)
Filters out excluded files from further validation.- Parameters:
files
- Files to validate- Returns:
- List of relevant files
-
-