/// <summary> /// Adds a new <see cref="ListModule"/> to a <see cref="FileCollector"/> with given patterns /// </summary> /// <param name="fileCollector">FileCollector to add module to</param> /// <param name="blockPatterns">patterns to decide if a path should be skipped</param> public static FileCollector AddListModule(this FileCollector fileCollector, IEnumerable <string> blockPatterns) { fileCollector.AddModule(new ListModule(Array.Empty <string>(), blockPatterns)); return(fileCollector); }
public static FileCollector AddIgnoreModule(this FileCollector fileCollector, IEnumerable <string> ignorePatterns) { fileCollector.AddModule(new IgnoreModule(ignorePatterns)); return(fileCollector); }
/// <summary> /// Adds a new <see cref="ListModule"/> to a <see cref="FileCollector"/> with given patterns /// </summary> /// <param name="fileCollector">FileCollector to add module to</param> /// <param name="allowPatterns">patterns to decide if a path should be taken</param> /// <param name="blockPatterns">patterns to decide if a path should be skipped</param> public static FileCollector AddListModule(this FileCollector fileCollector, IEnumerable <string> allowPatterns, IEnumerable <string> blockPatterns) { fileCollector.AddModule(new ListModule(allowPatterns, blockPatterns)); return(fileCollector); }