-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false positives and duplicate errors in the typosquatting algorit…
…hm (#108) * Fixed bug in typosquatting algorithm that may duplicate package name if found to be malicious * Exiting early from typosquatting algorithm if the requested package is one of the top packages to avoid expensive computation * Using canonicalize_name() in typosquatting algorithm to adhere to PEP and avoid false positives * Refactored for better encapsulation, coding conventions, typos, and added constructor call * Created tests for issue 71
- Loading branch information
1 parent
e2e05c7
commit 67963ee
Showing
3 changed files
with
43 additions
and
32 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