Tailor-made formatter
Example Formatter
def report(manager, fileobj, sev_level, conf_level, lines=-1):
result = bson.dumps(issues)
with fileobj:
fileobj.write(result)# If you have an imaginary bson formatter in the bandit_bson module # and a function called `formatter`. entry_points={'bandit.formatters': ['bson = bandit_bson:formatter']}[entry_points] bandit.formatters = bson = bandit_bson:formatter
Complete Formatter Listing
Last updated