-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different regexes in KeywordDetector to improve accuracy #86
Merged
Merged
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b9c80f9
Use different regexes in KeywordDetector to improve accuracy
KevinHock c4e7676
Trim regexes down, include secret 'foo'; as well.
KevinHock fce2837
Do not alert if whitespace is in secret
KevinHock 3167cb1
[Keyword Plugin] Add 3 re's and their secret groups in dict
KevinHock b6dc9cc
Merge branch 'master' into upgrade_keyword_detector
KevinHock b89209f
Add a few more Keyword negative test-cases
KevinHock 431ad12
Added a variety of accuracy improvements to Keyword Plugin (see tests)
KevinHock a27659a
:telescope:[Keyword Plugin] Filter false-positives
KevinHock a4c0432
Merge branch 'master' into upgrade_keyword_detector
KevinHock d8f4e29
:snake: Make tests pass
KevinHock ed6a374
:snake: Improve test coverage
KevinHock 3fd9e87
:telescope:[Keyword Plugin] Precision improvements
KevinHock f15366e
:zap: Remove unnecessary wrapping parens
KevinHock e01d818
:telescope:[Keyword Plugin] Precision improvements
KevinHock 4581aa8
:mortar_board: Eg. -> E.g.
KevinHock b7e48ab
:telescope:[Keyword Plugin] Handle dict['keyword']
KevinHock a37a9c9
:arrows_counterclockwise: Merge branch 'master' into upgrade_keyword_…
KevinHock d314550
:snake:[consistency] 2 spaces before pragma comment
KevinHock a29108b
:telescope:[Keyword Plugin] Precision improvements
KevinHock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion
2
test_data/short_files/first_line.py → test_data/short_files/first_line.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
secret = 'BEEF0123456789a' | ||
seecret = 'BEEF0123456789a' | ||
skipped_sequential_false_positive = '0123456789a' | ||
print('second line') | ||
var = 'third line' |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I felt :/ about writing it like this, but didn't see a better way.
Just wanted to put neon lights on it for the review 😅