bandit/bandit/core
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
..
__init__.py Simplifying Result Store 2015-09-05 20:12:16 +01:00
config.py Test coverage of manager now at 100% 2015-09-21 18:32:26 +01:00
constants.py Tweaks to #nosec (+ ignore flag, - dead constant) 2015-10-13 14:27:04 -04:00
context.py Removing argument printing 2015-09-22 12:17:25 +01:00
extension_loader.py Add extension entry-points and loading 2015-06-19 19:59:35 -05:00
issue.py Improving Bandit Baseline Reporting 2015-11-09 13:51:50 +01:00
manager.py Fixing a simple issue in results count to fix exit code 2015-11-13 19:27:28 +01:00
meta_ast.py Unit testing of meta_ast.py 2015-09-04 18:59:25 -07:00
metrics.py Fixing Traceback with Bad File 2015-11-04 08:58:47 +01:00
node_visitor.py Making score sum totals more sane 2015-11-04 07:48:42 +01:00
test_properties.py Changing the way baseline formatters are indicated 2015-11-12 13:55:43 +01:00
test_set.py Fix manager having no attribute '_init_logger' 2015-09-03 15:41:29 -07:00
tester.py Simplifying Result Store 2015-09-05 20:12:16 +01:00
utils.py Making score sum totals more sane 2015-11-04 07:48:42 +01:00