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)
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(String excludeFromFailureFile) throws org.apache.maven.plugin.MojoExecutionException
ExcludeFromFile
loadExcludeFromFailuresData
in interface ExcludeFromFile<Duplication>
excludeFromFailureFile
- the path to the properties fileorg.apache.maven.plugin.MojoExecutionException
- if the properties file couldn't be loadedpublic int countExclusions()
ExcludeFromFile
countExclusions
in interface ExcludeFromFile<Duplication>
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.