)]}'
{"bandit/cli/main.py":[{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    logger.debug(\"logging initialized\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"def _report_error(msg, *args):"},{"line_number":62,"context_line":"    # used so we can detect error specifics in tests"},{"line_number":63,"context_line":"    logger.error(msg, *args)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_ab759632","line":61,"updated":"2016-02-24 12:36:37.000000000","message":"Is there a reason not to mock logger.error instead? (or even the whole logger) It\u0027s available at module level after all.","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"514ca4d71514ac854dbad5a667952c05f14b7885","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    logger.debug(\"logging initialized\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"def _report_error(msg, *args):"},{"line_number":62,"context_line":"    # used so we can detect error specifics in tests"},{"line_number":63,"context_line":"    logger.error(msg, *args)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_4dc0ae2a","line":61,"in_reply_to":"bae84128_ab759632","updated":"2016-02-29 13:18:24.000000000","message":"no not really, logger is called a few times, but its simple enough to drill down. This is a silly function really lol","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    profile \u003d {}"},{"line_number":123,"context_line":"    if profile_name:"},{"line_number":124,"context_line":"        profiles \u003d config.get_option(\u0027profiles\u0027) or {}"},{"line_number":125,"context_line":"        profile \u003d profiles.get(profile_name, {})"},{"line_number":126,"context_line":"        if not profile:"},{"line_number":127,"context_line":"            raise utils.ProfileNotFound(config_path, profile_name)"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_ab1f56b5","line":125,"updated":"2016-02-24 12:36:37.000000000","message":"nit: it looks like the `{}` default has some specific meaning, but the next line just checks for truthiness. .get(profile_name) would do. (it\u0027s not wrong, just curious)","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"514ca4d71514ac854dbad5a667952c05f14b7885","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    profile \u003d {}"},{"line_number":123,"context_line":"    if profile_name:"},{"line_number":124,"context_line":"        profiles \u003d config.get_option(\u0027profiles\u0027) or {}"},{"line_number":125,"context_line":"        profile \u003d profiles.get(profile_name, {})"},{"line_number":126,"context_line":"        if not profile:"},{"line_number":127,"context_line":"            raise utils.ProfileNotFound(config_path, profile_name)"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_0d4b462b","line":125,"in_reply_to":"bae84128_ab1f56b5","updated":"2016-02-29 13:18:24.000000000","message":"yeah no reason, I\u0027ll change it to None","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        if not profile:"},{"line_number":294,"context_line":"            profile \u003d {\u0027include\u0027: args.tests.split(\u0027,\u0027) if args.tests else [],"},{"line_number":295,"context_line":"                       \u0027exclude\u0027: args.skips.split(\u0027,\u0027) if args.skips else []}"},{"line_number":296,"context_line":"        extension_mgr.validate_profile(profile)"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    except (utils.ProfileNotFound, ValueError) as e:"},{"line_number":299,"context_line":"        _report_error(e)"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_2be7c6ac","line":296,"updated":"2016-02-24 12:36:37.000000000","message":"I like short, clear code. Nice rewrite :)","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"514ca4d71514ac854dbad5a667952c05f14b7885","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        if not profile:"},{"line_number":294,"context_line":"            profile \u003d {\u0027include\u0027: args.tests.split(\u0027,\u0027) if args.tests else [],"},{"line_number":295,"context_line":"                       \u0027exclude\u0027: args.skips.split(\u0027,\u0027) if args.skips else []}"},{"line_number":296,"context_line":"        extension_mgr.validate_profile(profile)"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    except (utils.ProfileNotFound, ValueError) as e:"},{"line_number":299,"context_line":"        _report_error(e)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_cd5b1ef5","line":296,"in_reply_to":"bae84128_2be7c6ac","updated":"2016-02-29 13:18:24.000000000","message":"thanks :)","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        extension_mgr.validate_profile(profile)"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    except (utils.ProfileNotFound, ValueError) as e:"},{"line_number":299,"context_line":"        _report_error(e)"},{"line_number":300,"context_line":"        sys.exit(2)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"    b_mgr \u003d b_manager.BanditManager(b_conf, args.agg_type, args.debug,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_8b8d32d5","line":299,"updated":"2016-02-24 12:36:37.000000000","message":"nit: consistency - (\u0027%s\u0027, e), or (e)? this file uses both.","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"514ca4d71514ac854dbad5a667952c05f14b7885","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        extension_mgr.validate_profile(profile)"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    except (utils.ProfileNotFound, ValueError) as e:"},{"line_number":299,"context_line":"        _report_error(e)"},{"line_number":300,"context_line":"        sys.exit(2)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"    b_mgr \u003d b_manager.BanditManager(b_conf, args.agg_type, args.debug,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_6d9e5264","line":299,"in_reply_to":"bae84128_8b8d32d5","updated":"2016-02-29 13:18:24.000000000","message":"good catch, there is never any need to convert to string. I\u0027ll update to match this way of doing things","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"}],"bandit/core/extension_loader.py":[{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        self.blacklist_by_id \u003d {}"},{"line_number":84,"context_line":"        self.blacklist_by_name \u003d {}"},{"line_number":85,"context_line":"        for key, val in six.iteritems(self.blacklist):"},{"line_number":86,"context_line":"            for b in val:"},{"line_number":87,"context_line":"                self.blacklist_by_id[b[\u0027id\u0027]] \u003d b"},{"line_number":88,"context_line":"                self.blacklist_by_name[b[\u0027name\u0027]] \u003d b"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_4b5cca4a","line":85,"updated":"2016-02-24 12:36:37.000000000","message":"key\u0027s no used. six.itervalues?","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"be2b67fb000da25986ab83fda9d92b2e648279b3","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        self.blacklist_by_id \u003d {}"},{"line_number":84,"context_line":"        self.blacklist_by_name \u003d {}"},{"line_number":85,"context_line":"        for key, val in six.iteritems(self.blacklist):"},{"line_number":86,"context_line":"            for b in val:"},{"line_number":87,"context_line":"                self.blacklist_by_id[b[\u0027id\u0027]] \u003d b"},{"line_number":88,"context_line":"                self.blacklist_by_name[b[\u0027name\u0027]] \u003d b"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_4de1ce99","line":85,"in_reply_to":"bae84128_4b5cca4a","updated":"2016-02-29 13:20:18.000000000","message":"Done","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"357fc1be23a6d663c56bfbe9a60270f41bf7822f","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        for exc in profile[\u0027exclude\u0027]:"},{"line_number":103,"context_line":"            if _check(exc):"},{"line_number":104,"context_line":"                raise ValueError(\u0027Unknown Test found in profile: %s\u0027 % exc)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"# Using entry-points and pkg_resources *can* be expensive. So let\u0027s load these"},{"line_number":108,"context_line":"# once, store them on the object, and have a module global object for"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_eebe8c63","line":105,"updated":"2016-02-24 12:36:37.000000000","message":"should we warn or even fail on `len(inc \u0026 exc) \u003e 0` ?","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"4f418fad40dcba42dde3383ca4482b3347112afd","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        for exc in profile[\u0027exclude\u0027]:"},{"line_number":103,"context_line":"            if _check(exc):"},{"line_number":104,"context_line":"                raise ValueError(\u0027Unknown Test found in profile: %s\u0027 % exc)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"# Using entry-points and pkg_resources *can* be expensive. So let\u0027s load these"},{"line_number":108,"context_line":"# once, store them on the object, and have a module global object for"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_c0cda5b8","line":105,"in_reply_to":"9aed3d3a_6de492ab","updated":"2016-02-29 13:25:36.000000000","message":"OK, changed my mind, lets fail on this case","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"be2b67fb000da25986ab83fda9d92b2e648279b3","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        for exc in profile[\u0027exclude\u0027]:"},{"line_number":103,"context_line":"            if _check(exc):"},{"line_number":104,"context_line":"                raise ValueError(\u0027Unknown Test found in profile: %s\u0027 % exc)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"# Using entry-points and pkg_resources *can* be expensive. So let\u0027s load these"},{"line_number":108,"context_line":"# once, store them on the object, and have a module global object for"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_6de492ab","line":105,"in_reply_to":"bae84128_eebe8c63","updated":"2016-02-29 13:20:18.000000000","message":"probably worth warning about, but it is functionally valid (but very silly) for this to be the case","commit_id":"9cb5d32b36d4eb6577d588ac9f5fadd973db0297"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"ff0e789bfd2b0fea2f2b0c29727f9042ca098c7e","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        union \u003d set(profile[\u0027include\u0027]) \u0026 set(profile[\u0027exclude\u0027])"},{"line_number":107,"context_line":"        if len(union) \u003e 0:"},{"line_number":108,"context_line":"            raise ValueError(\u0027None exclusive include/excule test sets: %s\u0027 %"},{"line_number":109,"context_line":"                             union)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7af24918_4c81524a","line":108,"updated":"2016-03-01 16:47:35.000000000","message":"typos abound here :)","commit_id":"c27fb4b25c12bdc8524b28a05cd06d35b4f54191"}]}
