Skip to content

Commit

Permalink
Merge pull request #415 from BillBrower/patch-1
Browse files Browse the repository at this point in the history
#394 Describe baseline and it's usage in README
  • Loading branch information
lukehinds committed Dec 23, 2018
2 parents d3a4fb0 + bcd5929 commit 917551a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.rst
Expand Up @@ -252,6 +252,20 @@ Usage::
B702 use_of_mako_templates
B703 django_mark_safe

Baseline
--------
Bandit allows specifying the path of a baseline report to compare against using the base line argument (i.e. ``-b BASELINE`` or ``--baseline BASELINE``).

::
bandit -b BASELINE

This is useful for ignoring known vulnerabilities that you believe are non-issues (e.g. a cleartext password in a unit test). To generate a baseline report simply run Bandit with the output format set to ``json`` (only JSON-formatted files are accepted as a baseline) an output file path specified:

::

bandit -f json -o PATH_TO_OUTPUT_FILE


Version control integration
---------------------------
Expand Down

0 comments on commit 917551a

Please sign in to comment.