SecretScanner icon indicating copy to clipboard operation
SecretScanner copied to clipboard

Replace blacklist_ with exclude_ in config keys and error messages

Open ogarrett opened this issue 2 years ago • 0 comments

For diversity/inclusion reasons, replace 'blacklist' with 'exclude':

Config keys:

  • blacklisted_strings
  • blacklisted_extensions
  • blacklisted_paths
  • blacklisted_entropy_extensions

Error messages:

  • "Blacklisted string %s matched"
  • "matchString: Skipping matches containing blacklisted strings"
  • "processHsRegexMatch: Skipping matches containing blacklisted strings"

If possible, retain the blacklist_* config keys for backwards compatibility, using them as undocumented aliases for the equivalent exclude_ keys.

ogarrett avatar Jul 05 '22 07:07 ogarrett