Skip to content
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

Support ignoring blacklists by name #1046

Merged
merged 3 commits into from Aug 18, 2023

Commits on Aug 17, 2023

  1. Support ignoring blacklists by name

    This extends nosec parsing to enable blacklists to be ignored by
    their name, not just by id.
    
    There were 2 issues with the previous implementation:
    1. The regex did not match numbers, which is needed for some names,
       such as md5. The code would only match "md" in this case.
    2. The function that maps plugin names to ids only considered plugins
       but not blacklists.
    
    Both of these are now addressed.
    
    Closes PyCQA#988
    costaparas committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    8d07ba0 View commit details
    Browse the repository at this point in the history
  2. Relabel plugin to test to avoid confusion

    The original code considered plugins, but not blacklists.
    Since the code now correctly considers both types of tests,
    the function and variables should be renamed to avoid confusion.
    costaparas committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    d24d179 View commit details
    Browse the repository at this point in the history
  3. Fix lint

    costaparas committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    8483baf View commit details
    Browse the repository at this point in the history