ExcludeFromFile<Duplication>
public class ExcludeDuplicationsFromFile extends java.lang.Object implements ExcludeFromFile<Duplication>
pmd.excludeFromFailureFile
.Constructor | Description |
---|---|
ExcludeDuplicationsFromFile() |
Modifier and Type | Method | Description |
---|---|---|
int |
countExclusions() |
Determines how many exclusions are considered.
|
boolean |
isExcludedFromFailure(net.sourceforge.pmd.cpd.Match errorDetail) |
Checks whether the given
Match is excluded. |
boolean |
isExcludedFromFailure(Duplication errorDetail) |
Checks whether the given violation is excluded.
|
void |
loadExcludeFromFailuresData(java.lang.String excludeFromFailureFile) |
Loads the exclude definitions from the given file.
|
public boolean isExcludedFromFailure(Duplication errorDetail)
ExcludeFromFile
ExcludeFromFile.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(java.lang.String excludeFromFailureFile) throws MojoExecutionException
ExcludeFromFile
loadExcludeFromFailuresData
in interface ExcludeFromFile<Duplication>
excludeFromFailureFile
- the path to the properties fileMojoExecutionException
- if the properties file couldn't be loadedpublic int countExclusions()
ExcludeFromFile
countExclusions
in interface ExcludeFromFile<Duplication>
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.