D - type of violation to exclude, e.g. Violation
or Duplication.public interface ExcludeFromFile<D>
| Modifier and Type | Method and Description |
|---|---|
int |
countExclusions()
Determines how many exclusions are considered.
|
boolean |
isExcludedFromFailure(D errorDetail)
Checks whether the given violation is excluded.
|
void |
loadExcludeFromFailuresData(String excludeFromFailureFile)
Loads the exclude definitions from the given file.
|
void loadExcludeFromFailuresData(String excludeFromFailureFile) throws org.apache.maven.plugin.MojoExecutionException
excludeFromFailureFile - the path to the properties fileorg.apache.maven.plugin.MojoExecutionException - if the properties file couldn't be loadedint countExclusions()
boolean isExcludedFromFailure(D errorDetail)
loadExcludeFromFailuresData(String).errorDetail - the violation to checktrue if the violation should be excluded, false otherwise.Copyright © 2005–2023 The Apache Software Foundation. All rights reserved.