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