PyCQA / bandit

Bandit is a tool designed to find common security issues in Python code.
https://bandit.readthedocs.io
Apache License 2.0
6.52k stars 612 forks source link

Allow using test_name in custom formatter #962

Open krishan711 opened 2 years ago

krishan711 commented 2 years ago

It would be great if we could use the test_name field in the custom formatter (https://github.com/PyCQA/bandit/blob/main/bandit/formatters/custom.py).

It is used in other formatter like the csv formatter (https://github.com/PyCQA/bandit/blob/main/bandit/formatters/csv.py#L58)

I'd be happy to try implement this myself if it seems relevant and not blocked by something obvious I haven't noticed.