)]}'
{"docs/source/tests/assert_used.rst":[{"author":{"_account_id":979,"name":"Dave Walker","email":"email@daviey.com","username":"davewalker"},"change_message_id":"d37941fd74f06814e99351326c4f3ecc556ae5be","unresolved":false,"context_lines":[{"line_number":5,"context_line":"-----------"},{"line_number":6,"context_line":"This plugin test checks for the use of the Python `assert` keyword. It was"},{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (\\*.pyo). This"},{"line_number":9,"context_line":"caused various protections to be removed. The use of assert is also considered"},{"line_number":10,"context_line":"as general bad practice in OpenStack codebases."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a50d1a3_9c3e658a","line":8,"updated":"2015-07-29 22:42:40.000000000","message":"Perhaps mention, \"python -O\" ?","commit_id":"f4d4f3cd5d340a3ddfae84064267587436e5b39e"},{"author":{"_account_id":979,"name":"Dave Walker","email":"email@daviey.com","username":"davewalker"},"change_message_id":"d37941fd74f06814e99351326c4f3ecc556ae5be","unresolved":false,"context_lines":[{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (\\*.pyo). This"},{"line_number":9,"context_line":"caused various protections to be removed. The use of assert is also considered"},{"line_number":10,"context_line":"as general bad practice in OpenStack codebases."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Available Since"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a50d1a3_fc60c9a6","line":10,"updated":"2015-07-29 22:42:40.000000000","message":"Perhaps footnote link to https://docs.python.org/2/reference/simple_stmts.html#grammar-token-assert_stmt ?","commit_id":"f4d4f3cd5d340a3ddfae84064267587436e5b39e"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"22265248abc541da00aad022e0bd85541f272761","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    \u003e\u003e Issue: Use of assert detected. The enclosed code will be removed when compiling to optimised byte code."},{"line_number":29,"context_line":"       Severity: Low   Confidence: High"},{"line_number":30,"context_line":"       Location: ./examples/assert.py:1"},{"line_number":31,"context_line":"    1 assert True"},{"line_number":32,"context_line":"    2"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da20952f_503ab299","line":31,"updated":"2015-09-02 16:40:27.000000000","message":"How about an example like this to call out the issue:\n\nassert(logged_in)\ndisplay_assets()\n\nThe assert(logged_in) would be optimized out thus displaying assets regardless of the user being required to log in.","commit_id":"f9a49b5d76daae800f6aea16f0c91746d8babe50"},{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"15018d000217df6974df0354fddab9ea0c986d7b","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    \u003e\u003e Issue: Use of assert detected. The enclosed code will be removed when compiling to optimised byte code."},{"line_number":29,"context_line":"       Severity: Low   Confidence: High"},{"line_number":30,"context_line":"       Location: ./examples/assert.py:1"},{"line_number":31,"context_line":"    1 assert True"},{"line_number":32,"context_line":"    2"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da20952f_c6c5635c","line":31,"in_reply_to":"da20952f_503ab299","updated":"2015-09-03 23:43:03.000000000","message":"Done","commit_id":"f9a49b5d76daae800f6aea16f0c91746d8babe50"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"17aec5e5d134dceab0954a8fc58dc025d17f32ad","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Description"},{"line_number":5,"context_line":"-----------"},{"line_number":6,"context_line":"This plugin test checks for the use of the Python ``assert`` keyword. It was"},{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (python -o"},{"line_number":9,"context_line":"producing \\*.pyo files). This caused various protections to be removed. The use"},{"line_number":10,"context_line":"of assert is also considered as general bad practice in OpenStack codebases."}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_7d2c2f99","line":7,"updated":"2015-09-03 19:40:19.000000000","message":"s/,/.","commit_id":"5450ed884004451e021e6463c4a7deb7b6b99faf"},{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"3646e23f4125e4ceb98f6d3bbe515fc3b1a5af6f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Description"},{"line_number":5,"context_line":"-----------"},{"line_number":6,"context_line":"This plugin test checks for the use of the Python ``assert`` keyword. It was"},{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (python -o"},{"line_number":9,"context_line":"producing \\*.pyo files). This caused various protections to be removed. The use"},{"line_number":10,"context_line":"of assert is also considered as general bad practice in OpenStack codebases."}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_a6bcefbb","line":7,"in_reply_to":"da20952f_7d2c2f99","updated":"2015-09-03 23:43:42.000000000","message":"Done","commit_id":"5450ed884004451e021e6463c4a7deb7b6b99faf"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"17aec5e5d134dceab0954a8fc58dc025d17f32ad","unresolved":false,"context_lines":[{"line_number":5,"context_line":"-----------"},{"line_number":6,"context_line":"This plugin test checks for the use of the Python ``assert`` keyword. It was"},{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (python -o"},{"line_number":9,"context_line":"producing \\*.pyo files). This caused various protections to be removed. The use"},{"line_number":10,"context_line":"of assert is also considered as general bad practice in OpenStack codebases."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_9d3103f0","line":8,"updated":"2015-09-03 19:40:19.000000000","message":"s/however/However","commit_id":"5450ed884004451e021e6463c4a7deb7b6b99faf"},{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"3646e23f4125e4ceb98f6d3bbe515fc3b1a5af6f","unresolved":false,"context_lines":[{"line_number":5,"context_line":"-----------"},{"line_number":6,"context_line":"This plugin test checks for the use of the Python ``assert`` keyword. It was"},{"line_number":7,"context_line":"discovered that some projects used assert to enforce interface constraints,"},{"line_number":8,"context_line":"however, assert is removed with compiling to optimised byte code (python -o"},{"line_number":9,"context_line":"producing \\*.pyo files). This caused various protections to be removed. The use"},{"line_number":10,"context_line":"of assert is also considered as general bad practice in OpenStack codebases."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_46add382","line":8,"in_reply_to":"da20952f_9d3103f0","updated":"2015-09-03 23:43:42.000000000","message":"Done","commit_id":"5450ed884004451e021e6463c4a7deb7b6b99faf"}]}
