-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance add_filter to specify the max matched lines
- added a new keyword argument "max_match=MAX_MATCH" to `add_filter`. By declaring the max_match, at most `max_match` number of lines that contain the patterns will be filtered out in the collection. For redundant declarations the maximum `max_match` will be kept as the final scanning number. If no `max_match` is declared when `add_filter`, the filters.MAX_MATCH (=10000) will be take as the default value. - added a new keyword argument "with_matches=False" to the `get_filters`. When "with_matches=True" is specified, the return value of the `get_filters` will be dict in which the max scanning numbers for each filter pattern are included as the dict value. - update the exiting tests - RHINENG-14669 Signed-off-by: Xiangce Liu <[email protected]>
- Loading branch information
Showing
27 changed files
with
448 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.