)]}'
{"bandit/blacklists/calls.py":[{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"029ef4489499648e948416a48b58094321894d7c","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    # end of XML tests"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    sets.append(_build_conf_dict("},{"line_number":222,"context_line":"        \u0027ftplib\u0027, \u0027B321\u0027, [\u0027ftplib.*\u0027],"},{"line_number":223,"context_line":"        \u0027FTP-related funtions are being called. FTP is considered \u0027"},{"line_number":224,"context_line":"        \u0027insecure. Use SSH/SFTP/SCP or some other encrypted protocol.\u0027,"},{"line_number":225,"context_line":"        \u0027HIGH\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"da6ed579_f15beaf4","line":222,"updated":"2016-01-16 12:04:39.000000000","message":"We removed the * capability, yes? Does this do what we think it does then?","commit_id":"eda468ac95a08e0fa580b017f059476325449066"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"1f526d37c5e1a63c796b9f1c1df628da0e010812","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    # end of XML tests"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    sets.append(_build_conf_dict("},{"line_number":222,"context_line":"        \u0027ftplib\u0027, \u0027B321\u0027, [\u0027ftplib.*\u0027],"},{"line_number":223,"context_line":"        \u0027FTP-related funtions are being called. FTP is considered \u0027"},{"line_number":224,"context_line":"        \u0027insecure. Use SSH/SFTP/SCP or some other encrypted protocol.\u0027,"},{"line_number":225,"context_line":"        \u0027HIGH\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"da6ed579_e0ac7137","line":222,"in_reply_to":"da6ed579_f15beaf4","updated":"2016-01-16 15:23:00.000000000","message":"the \u0027*\u0027 functionality is only removed from import blacklists, this is a call so it will work the same as before. Very good catch though! it\u0027s not clear in the commit message so I\u0027ll edit that.","commit_id":"eda468ac95a08e0fa580b017f059476325449066"}],"bandit/blacklists/imports.py":[{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"029ef4489499648e948416a48b58094321894d7c","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# under the License."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"def _build_conf_dict(name, bid, qualnames, message, level\u003d\u0027MEDIUM\u0027):"},{"line_number":19,"context_line":"    return {\u0027name\u0027: name, \u0027id\u0027: bid, \u0027message\u0027: message,"},{"line_number":20,"context_line":"            \u0027qualnames\u0027: qualnames, \u0027level\u0027: level}"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da6ed579_91714e7a","line":18,"updated":"2016-01-16 12:04:39.000000000","message":"Suggestion: Instead of having both blacklist modules have a _build_conf_dict, what if we have a bandit/blacklist/utils?.py that has a build_conf_dict that both use instead?","commit_id":"eda468ac95a08e0fa580b017f059476325449066"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"1f526d37c5e1a63c796b9f1c1df628da0e010812","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# under the License."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"def _build_conf_dict(name, bid, qualnames, message, level\u003d\u0027MEDIUM\u0027):"},{"line_number":19,"context_line":"    return {\u0027name\u0027: name, \u0027id\u0027: bid, \u0027message\u0027: message,"},{"line_number":20,"context_line":"            \u0027qualnames\u0027: qualnames, \u0027level\u0027: level}"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da6ed579_006c2507","line":18,"in_reply_to":"da6ed579_91714e7a","updated":"2016-01-16 15:23:00.000000000","message":"I tend to try and keep things self contained with plugins, but there it no reason not to have a utils file, good idea. I\u0027ll add one","commit_id":"eda468ac95a08e0fa580b017f059476325449066"}],"bandit/blacklists/utils.py":[{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"3e588031dc500f9c07b98e34e97b151ecf99a18d","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# under the License."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"def build_conf_dict(name, bid, qualnames, message, level\u003d\u0027MEDIUM\u0027):"},{"line_number":19,"context_line":"    \"\"\"Build and return a blacklist configuration dict.\"\"\""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    return {\u0027name\u0027: name, \u0027id\u0027: bid, \u0027message\u0027: message,"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba63e191_8678fbf3","line":18,"updated":"2016-01-19 20:13:27.000000000","message":"do we want to add the ability to set confidence as well?","commit_id":"a9839d42666b12a22a8ee31c9a7f0eb5363700b0"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"de48af3112a6a88529455cb0ba46e6cd06323520","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# under the License."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"def build_conf_dict(name, bid, qualnames, message, level\u003d\u0027MEDIUM\u0027):"},{"line_number":19,"context_line":"    \"\"\"Build and return a blacklist configuration dict.\"\"\""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    return {\u0027name\u0027: name, \u0027id\u0027: bid, \u0027message\u0027: message,"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba63e191_9b803b48","line":18,"in_reply_to":"ba63e191_8678fbf3","updated":"2016-01-20 06:38:55.000000000","message":"I think that would be good","commit_id":"a9839d42666b12a22a8ee31c9a7f0eb5363700b0"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"3d4c87595a1cc85ca4ac95c627c572bb65e42f4a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# under the License."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"def build_conf_dict(name, bid, qualnames, message, level\u003d\u0027MEDIUM\u0027):"},{"line_number":19,"context_line":"    \"\"\"Build and return a blacklist configuration dict.\"\"\""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    return {\u0027name\u0027: name, \u0027id\u0027: bid, \u0027message\u0027: message,"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba63e191_c189e427","line":18,"in_reply_to":"ba63e191_9b803b48","updated":"2016-01-20 08:05:17.000000000","message":"No need, the nature of the blacklist tests is such that there is no fuzziness to them. They always have 100% confidence (this was also the case for the old tests)","commit_id":"a9839d42666b12a22a8ee31c9a7f0eb5363700b0"}],"bandit/core/issue.py":[{"author":{"_account_id":1528,"name":"Stanislaw Pitucha","email":"viraptor@gmail.com","username":"stanislaw-pitucha"},"change_message_id":"ceba4a09c27e88f70e1e56aa31983b4d96734ed7","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class Issue(object):"},{"line_number":27,"context_line":"    def __init__(self, bid, severity, confidence\u003dconstants.CONFIDENCE_DEFAULT,"},{"line_number":28,"context_line":"                 text\u003d\"\", ident\u003dNone, lineno\u003dNone, ):"},{"line_number":29,"context_line":"        self.severity \u003d severity"},{"line_number":30,"context_line":"        self.confidence \u003d confidence"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba63e191_d03c9731","line":27,"updated":"2016-01-19 05:50:38.000000000","message":"I don\u0027t like the idea of bid being enforced in the constructor. Is there any reason it can\u0027t be None by default and filled by the test_id decorator:\n\n- if the return value isinstance(..., Issue)\n- if ret.test_id is None\n\n? That way we can provide / override it where needed, but don\u0027t have to repeat it. If we have it in two places in each test I expect some hard to spot copy\u0026paste mistakes in the future.","commit_id":"60c4d7902a387d350b8aac9d9a53a9300ffd1ebe"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"6a38aea3519d8aaecf309da09fc93897da62b38a","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class Issue(object):"},{"line_number":27,"context_line":"    def __init__(self, bid, severity, confidence\u003dconstants.CONFIDENCE_DEFAULT,"},{"line_number":28,"context_line":"                 text\u003d\"\", ident\u003dNone, lineno\u003dNone, ):"},{"line_number":29,"context_line":"        self.severity \u003d severity"},{"line_number":30,"context_line":"        self.confidence \u003d confidence"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba63e191_2aa57f03","line":27,"in_reply_to":"ba63e191_d03c9731","updated":"2016-01-19 07:56:23.000000000","message":"You may well have a a point there Stan, I did consider this when I added the param, in the end I decided to avoid the conditional logic and use the issue to enforce passing the ID explicitly ... that probably wasn\u0027t the best choice, I\u0027ll investigate doing it the other way.","commit_id":"60c4d7902a387d350b8aac9d9a53a9300ffd1ebe"}],"tests/unit/core/test_manager.py":[{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"01d72222deecce137e2e8b1e7316e8768e8b6d5b","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        self.assertEqual(m.debug, False)"},{"line_number":132,"context_line":"        self.assertEqual(m.verbose, False)"},{"line_number":133,"context_line":"        self.assertEqual(m.agg_type, \u0027file\u0027)"},{"line_number":134,"context_line":"        # self.assertFalse(m.has_tests) we now have a blacklist test always"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def test_matches_globlist(self):"},{"line_number":137,"context_line":"        self.assertTrue(manager._matches_glob_list(\u0027test\u0027, [\u0027*tes*\u0027]))"}],"source_content_type":"text/x-python","patch_set":1,"id":"da6ed579_68af162c","line":134,"range":{"start_line":134,"start_character":15,"end_line":134,"end_character":26},"updated":"2016-01-16 00:34:07.000000000","message":"Is there a case where a user would reasonably go into the code and uncomment this?\n\nIf not then maybe this line should just be removed, as the history of it\u0027s removal is preserved in Git after all.","commit_id":"c902e8a6f46c61cfaff95065c0f0faa12f16f3e9"}]}
