Skip to content

Add missing Bandit config file and rules path options #679

Closed
@CAM-Gerlach

Description

@CAM-Gerlach

Is your feature request related to a problem? Please describe.

I am unable to configure Mega-Linter to recognize my existing repository-root Bandit config file (.bandit.yml), either by manually specifying the path to it, or by using the LINTER_DEFAULT option, as the relevant PYTHON_BANDIT_CONFIG_FILE config variable is missing. Therefore, Mega-Linter reports errors I've ignored there. Furthermore, PYTHON_BANDIT_RULES_PATH is not present as well; these two config variables exist for every other linter I could find, but not Bandit. I confirmed they aren't just undocumented, as I tested adding them and Bandit's behavior didn't change.

As a result, given the duplication that would occur with maintaining two different config files for the same tool at two different paths and filenames, I've unfortunately had to refrain from running Bandit with Mega-Linter until this issue is resolved.

Presumably related to PR #533 .

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add the two relevant config file path related variables, like all the other linters have.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Not adding the variables; there appears to be no clear motivation for this given all the other linters have them and bandit has a config file like all the others, so it would only make sense to have them as well.

Additional context
Add any other context or screenshots about the feature request here.

Thanks for your consideration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    O: stale 🤖This issue or pull request is stale, it will be closed if there is no activityWaiting user validationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions