Interface ExcludeFromFile<D>

    • Method Detail

      • loadExcludeFromFailuresData

        void loadExcludeFromFailuresData​(java.lang.String excludeFromFailureFile)
                                  throws MojoExecutionException
        Loads the exclude definitions from the given file.
        Parameters:
        excludeFromFailureFile - the path to the properties file
        Throws:
        MojoExecutionException - if the properties file couldn't be loaded
      • countExclusions

        int countExclusions()
        Determines how many exclusions are considered.
        Returns:
        the number of active exclusions
      • isExcludedFromFailure

        boolean isExcludedFromFailure​(D errorDetail)
        Checks whether the given violation is excluded. Note: the exclusions must have been loaded before via loadExcludeFromFailuresData(String).
        Parameters:
        errorDetail - the violation to check
        Returns:
        true if the violation should be excluded, false otherwise.