Package com.qulice.pmd
Class PmdValidator
- java.lang.Object
-
- com.qulice.pmd.PmdValidator
-
- All Implemented Interfaces:
ResourceValidator
public final class PmdValidator extends Object implements ResourceValidator
Validates source code with PMD.- Since:
- 0.3
-
-
Constructor Summary
Constructors Constructor Description PmdValidator(Environment env)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<net.sourceforge.pmd.util.datasource.DataSource>
getNonExcludedFiles(Collection<File> files)
Filters out excluded files from further validation.String
name()
Collection<Violation>
validate(Collection<File> files)
-
-
-
Constructor Detail
-
PmdValidator
public PmdValidator(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 Collection<net.sourceforge.pmd.util.datasource.DataSource> getNonExcludedFiles(Collection<File> files)
Filters out excluded files from further validation.- Parameters:
files
- Files to validate- Returns:
- Relevant source files
-
-