Skip to content

Enhancement request: add bandit support to linters #2726

Closed

Description

I'm proposing adding bandit support to the extension.

I have implemented this integration locally and was planning to submit a PR once I've written tests. Would this contribution be accepted?

I considered solving this with a flake8 plugin, but I have a preference to using oss as "out-of-the-box" as possible.

More generally, this extension provides a great base for integrating linting tools with VS Code -- is it possible to abstract this further to the point where simple linters are able to be integrated without requiring code changes to the extension? The only variable parameters for Bandit were the message regex + default arguments; this could be specified in settings.

Activity

  1. DonJayamanne commented on Oct 1, 2018

    @DonJayamanne

    possible to abstract this further to the point where simple linters are able to be integrated without requiring code changes to the extension?

    Currently you need to introduce a couple of changes:

    • Configuration settings
    • Changes to how a linter is installed
    • Changes to regex for the linters

    Most of the code is abstracted (re-usable via inherited classes), however all of the above changes have to be done either way.

    And we must have some functional tests.

  2. demus commented on Oct 2, 2018

    @demus
    Author

    Don Jayamanne (@DonJayamanne), thanks for the reply. Can I go ahead with submitting a PR for bandit integration in the meantime? I'd be happy to work on those other changes in the future.

  3. DonJayamanne commented on Oct 2, 2018

    @DonJayamanne

    Brett Cannon (@brettcannon) I'm voting we go ahead and accept this PR, as bandit is built and managed by PyCQA.

  4. added
    important
    on Oct 2, 2018
  5. locked as resolved and limited conversation to collaborators on Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-lintingfeature-requestimportant

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions