You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement request: add bandit support to linters #2726
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.
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.
Activity
DonJayamanne commentedon Oct 1, 2018
Currently you need to introduce a couple of changes:
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.
demus commentedon Oct 2, 2018
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.
DonJayamanne commentedon Oct 2, 2018
Brett Cannon (@brettcannon) I'm voting we go ahead and accept this PR, as bandit is built and managed by PyCQA.
Add bandit to supported linters (#2775)