Class GitIgnoreMatcher

java.lang.Object
org.apache.rat.mp.util.ignore.GitIgnoreMatcher
All Implemented Interfaces:
IgnoreMatcher

public class GitIgnoreMatcher extends Object implements IgnoreMatcher
  • Constructor Details

    • GitIgnoreMatcher

      public GitIgnoreMatcher(org.apache.maven.plugin.logging.Log log, File projectBaseDir)
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Description copied from interface: IgnoreMatcher
      Returns true if this IgnoreMatcher contains no rules.
      Specified by:
      isEmpty in interface IgnoreMatcher
      Returns:
      true if this IgnoreMatcher contains no rules
    • isIgnoredFile

      public Optional<Boolean> isIgnoredFile(String filename)
      Description copied from interface: IgnoreMatcher
      Checks if the file matches the stored expressions.
      Specified by:
      isIgnoredFile in interface IgnoreMatcher
      Parameters:
      filename - The filename to be checked
      Returns:
      empty: not matched, True: must be ignored, False: it must be UNignored
    • toString

      public String toString()
      Overrides:
      toString in class Object