Class ScmIgnoreParser

java.lang.Object
org.apache.rat.mp.util.ScmIgnoreParser

public final class ScmIgnoreParser extends Object
Helper to parse SCM ignore files to add entries as excludes during RAT runs. Since we log errors it needs to reside inside of the maven plugin.
  • Method Details

    • getExclusionsFromSCM

      public static List<IgnoreMatcher> getExclusionsFromSCM(org.apache.maven.plugin.logging.Log log, File baseDir)
      Parse ignore files from all known SCMs that have ignore files.
      Parameters:
      log - Show information via maven logger.
      baseDir - base directory from which to look for SCM ignores.
      Returns:
      Exclusions from the SCM ignore files.