-
-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support ignoring blacklists by name (#1046)
* Support ignoring blacklists by name This extends nosec parsing to enable blacklists to be ignored by their name, not just by id. There were 2 issues with the previous implementation: 1. The regex did not match numbers, which is needed for some names, such as md5. The code would only match "md" in this case. 2. The function that maps plugin names to ids only considered plugins but not blacklists. Both of these are now addressed. Closes #988 * Relabel plugin to test to avoid confusion The original code considered plugins, but not blacklists. Since the code now correctly considers both types of tests, the function and variables should be renamed to avoid confusion. * Fix lint
- Loading branch information
1 parent
215f014
commit 6d1d11c
Showing
4 changed files
with
19 additions
and
14 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
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