Giter VIP home page Giter VIP logo

Comments (7)

hpandeycodeit avatar hpandeycodeit commented on May 30, 2024 4

@KevinHock Thanks for the clarification. I created a PR. Let me know what you think.

from detect-secrets.

hpandeycodeit avatar hpandeycodeit commented on May 30, 2024 1

@KevinHock I would like to work on this.

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

Awesome @hpandeycodeit, let me know if you need any help 👍

from detect-secrets.

hpandeycodeit avatar hpandeycodeit commented on May 30, 2024

@KevinHock Are we looking to change the same files as in this commit 15a6e6a

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

@hpandeycodeit We will still change detect_secrets/core/usage.py and tests/core/usage_test.py, except instead of changing HexHighEntropyString and Base64HighEntropyString we can change KeywordDetector to have the option. e.g. Instead of an _add_high_entropy_excludes function we can add something like a _add_keyword_exclude function that adds a --keyword-exclude option to the KeywordDetector.

Instead of the detect_secrets/plugins/high_entropy_strings.py and tests/plugins/high_entropy_strings_test.py files. We can change detect_secrets/plugins/keyword.py and tests/plugins/keyword_test.py
e.g. in keyword.py we can add an __init__ method to take in a new arg, then call super's init method. We can use the new arg to skip strings in the analyze_string_content method.

Hope this helps 👍 Let me know if you need me to clarify anything

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

Awesome, thank you @hpandeycodeit 👍

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

Closing as fixed by #132

from detect-secrets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.