Commit 180a7cf
committed
Add regex to get error code from bandit output
This fix modifies the regex to search for the bandit error code.
The bandit error code always begins with 'B' followed by a 3 digit
number.
This will effectively make Sublimelinter-bandit consistent with
other plugins like Sublimelinter-pylint that show an error code.
For example, pylint plugin shows as:
1:1 warning pylint: C0111 Missing module docstring (missing-docstring)
Whereas the bandit plugin currently shows as:
21:1 warning bandit: Medium Use of insecure MD2, MD4, or MD5 hash function.
After this fix is merged, it will display as:
21:1 warning bandit: B303 Use of insecure MD2, MD4, or MD5 hash function.
Signed-off-by: Eric Brown <[email protected]>1 parent 9fcfd7e commit 180a7cf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments