bandit/bandit
Travis McPeak 2d96febcfd Fixing a simple issue in results count to fix exit code
This commit fixes a simple mistake in the baseline code that was
causing a baseline run with no new issues to return a fail.

Basically we were deleting all objects from the baseline list, and
then using the length of the baseline list to check if we were in
baseline mode.  Since the length was now 0, we decided we weren't
running baseline.

Now we make a copy of the list and delete issues from the copy to
leave the original list alone.  Also we make the code more clear
by doing an explicit list of get_issue_list instead of length
of filter().

Change-Id: I32af0a1291cb94a527f31f4fcfe8faa7be302095
2015-11-13 19:27:28 +01:00
..
config blacklist_calls: add Python3 and six versions of some functions 2015-11-06 18:04:44 +01:00
core Fixing a simple issue in results count to fix exit code 2015-11-13 19:27:28 +01:00
formatters Merge "Adding Baseline Capability to the Text Formatter" 2015-11-13 10:12:31 +00:00
plugins Merge "os.system et al. all spawn a shell so we should use the same logic" 2015-11-13 15:46:14 +00:00
__init__.py Simplifying Result Store 2015-09-05 20:12:16 +01:00
bandit.py Changing the way baseline formatters are indicated 2015-11-12 13:55:43 +01:00