Enhance entropy (#333)

* Modified Entropy to be able to apply it on regex match or specific capture group

* Config tests

* Small fixes on entropy ranges

* Fix toml configs
Fix tests

* Indents and code styles
This commit is contained in:
Noel Algora authored and GitHub committed 2020-02-24 13:44:38 -05:00
1 parent e7fbcf5333
commit ee2d73c740
20 files changed
+236 -208

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
[
{
"line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',",
"offender": "key_id='AKIAIO5FODNN7EXAMPLE'",
"line": " aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'",
"offender": "'ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'",
"commit": "6557c92612d3b35979bd426d429255b3bf9fab74",
"repo": "test_repo_1",
"rule": "entropy and regex",