Package org.apache.maven.plugins.pmd
Schnittstelle ExcludeFromFile<D>
- Typparameter:
D- type of violation to exclude, e.g.ViolationorDuplication.
- Alle bekannten Implementierungsklassen:
ExcludeDuplicationsFromFile,ExcludeViolationsFromFile
public interface ExcludeFromFile<D>
- Autor:
- Andreas Dangel
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintDetermines how many exclusions are considered.booleanisExcludedFromFailure(D errorDetail) Checks whether the given violation is excluded.voidloadExcludeFromFailuresData(String excludeFromFailureFile) Loads the exclude definitions from the given file.
-
Methodendetails
-
loadExcludeFromFailuresData
void loadExcludeFromFailuresData(String excludeFromFailureFile) throws org.apache.maven.plugin.MojoExecutionException Loads the exclude definitions from the given file.- Parameter:
excludeFromFailureFile- the path to the properties file- Löst aus:
org.apache.maven.plugin.MojoExecutionException- if the properties file couldn't be loaded
-
countExclusions
int countExclusions()Determines how many exclusions are considered.- Gibt zurück:
- the number of active exclusions
-
isExcludedFromFailure
Checks whether the given violation is excluded. Note: the exclusions must have been loaded before vialoadExcludeFromFailuresData(String).- Parameter:
errorDetail- the violation to check- Gibt zurück:
trueif the violation should be excluded,falseotherwise.
-