public class ExcludeDuplicationsFromFile extends Object implements ExcludeFromFile<Duplication>
pmd.excludeFromFailureFile.| Constructor and Description |
|---|
ExcludeDuplicationsFromFile() |
| Modifier and Type | Method and Description |
|---|---|
int |
countExclusions()
Determines how many exclusions are considered.
|
boolean |
isExcludedFromFailure(Duplication errorDetail)
Checks whether the given violation is excluded.
|
boolean |
isExcludedFromFailure(net.sourceforge.pmd.cpd.Match errorDetail)
Checks whether the given
Match is excluded. |
void |
loadExcludeFromFailuresData(String excludeFromFailureFile)
Loads the exclude definitions from the given file.
|
public boolean isExcludedFromFailure(Duplication errorDetail)
ExcludeFromFileExcludeFromFile.loadExcludeFromFailuresData(String).isExcludedFromFailure in interface ExcludeFromFile<Duplication>errorDetail - the violation to checktrue if the violation should be excluded, false otherwise.public boolean isExcludedFromFailure(net.sourceforge.pmd.cpd.Match errorDetail)
Match is excluded.
Note: The exclusion must have been loaded before via loadExcludeFromFailuresData(String).errorDetail - the duplication to checktrue if the given duplication should be excluded, false otherwise.public void loadExcludeFromFailuresData(String excludeFromFailureFile) throws MojoExecutionException
ExcludeFromFileloadExcludeFromFailuresData in interface ExcludeFromFile<Duplication>excludeFromFailureFile - the path to the properties fileMojoExecutionException - if the properties file couldn't be loadedpublic int countExclusions()
ExcludeFromFilecountExclusions in interface ExcludeFromFile<Duplication>Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.