We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e17e85b + 180a7cf commit 9a97585Copy full SHA for 9a97585
linter.py
@@ -23,7 +23,7 @@ class Bandit(PythonLinter):
23
version_re = r'^bandit\s(?P<version>\d+.\d+.\d+)'
24
version_requirement = '>= 1.3.0'
25
regex = (
26
- r'^>>\sIssue:\s\[.+\]\s(?P<message>.+)$\r?\n'
+ r'^>>\sIssue:\s\[(?P<code>[B]\d+):.+\]\s(?P<message>.+)$\r?\n'
27
r'^.*Severity:\s(?:(?P<error>High)|(?P<warning>(Medium|Low))).*$\r?\n'
28
r'^.*Location:.*:(?P<line>\d+)$\r?\n'
29
)
0 commit comments