Package org.pgcodekeeper.core.ignorelist
Class IgnoreParser
java.lang.Object
org.pgcodekeeper.core.ignorelist.IgnoreParser
Parser for ignore list files that determine which database objects
should be included or excluded during processing. Supports both whitelist and
blacklist patterns with various matching flags.
Whitelist rules have precedence over blacklist rules when both are present.
-
Constructor Summary
ConstructorsConstructorDescriptionIgnoreParser(IIgnoreList list) Creates a new IgnoreParser that will populate the specified ignore list. -
Method Summary
Modifier and TypeMethodDescriptionParses an ignore list configuration file and adds the rules to the ignore list.static IgnoreListparseLists(Collection<String> ignoreLists) Parses an ignore list configuration files and adds the rules to the ignore list.
-
Constructor Details
-
IgnoreParser
Creates a new IgnoreParser that will populate the specified ignore list.- Parameters:
list- the ignore list implementation to populate with parsed rules
-
-
Method Details
-
parse
Parses an ignore list configuration file and adds the rules to the ignore list.- Parameters:
listFile- path to the ignore list configuration file- Returns:
- this parser instance for method chaining
- Throws:
IOException- if there's an error reading the configuration file
-
parseLists
Parses an ignore list configuration files and adds the rules to the ignore list.- Parameters:
ignoreLists- - collection of paths to files containing objects to ignore- Returns:
- ignore list with merged rules
- Throws:
IOException- if there's an error reading the configuration files
-