Class ExcludeViolationsFromFile

  • All Implemented Interfaces:
    ExcludeFromFile<Violation>

    public class ExcludeViolationsFromFile
    extends java.lang.Object
    implements ExcludeFromFile<Violation>
    This class contains utility for loading property files, which define which PMD violations from which classes should be ignored and not cause a failure. See property pmd.excludeFromFailureFile.
    Author:
    Andreas Dangel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExcludeViolationsFromFile

        public ExcludeViolationsFromFile()