)]}'
{"networking_odl/hacking/checks.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"abe7fb21c91a45e11231e70f4eaa65de92bfda52","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \" instead of %s\")  # noqa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"_ND02_REGEXP_DIRECT \u003d re.compile(r\u0027cfg\\.CONF\\..* \u003d\u0027)"},{"line_number":36,"context_line":"RE_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\".*import (.+) as \\1$\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_1987e7d9","line":36,"range":{"start_line":36,"start_character":40,"end_line":36,"end_character":62},"updated":"2018-01-28 14:40:06.000000000","message":"i) use single quote string\nii) I don\u0027t think the .* at the beginning is necessary for what you want to achieve.","commit_id":"128924d75d7df4989a0baa5baadf13a0543adaf1"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"0b2ebbcc478e3da9b0ce703482b3c6a3fcd0b101","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \" instead of %s\")  # noqa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"_ND02_REGEXP_DIRECT \u003d re.compile(r\u0027cfg\\.CONF\\..* \u003d\u0027)"},{"line_number":36,"context_line":"RE_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\".*import (.+) as \\1$\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_d95bbf51","line":36,"range":{"start_line":36,"start_character":40,"end_line":36,"end_character":62},"in_reply_to":"5f93b717_1987e7d9","updated":"2018-01-28 15:35:39.000000000","message":"Coul you give an example about re?","commit_id":"128924d75d7df4989a0baa5baadf13a0543adaf1"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"a40017c108a6c95e4c4fffe26d85a3b74261f4e5","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \" instead of %s\")  # noqa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"_ND02_REGEXP_DIRECT \u003d re.compile(r\u0027cfg\\.CONF\\..* \u003d\u0027)"},{"line_number":36,"context_line":"RE_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\".*import (.+) as \\1$\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_3c9c11bf","line":36,"range":{"start_line":36,"start_character":40,"end_line":36,"end_character":62},"in_reply_to":"5f93b717_d95bbf51","updated":"2018-01-28 16:14:25.000000000","message":"I don\u0027t understand what example you want. For (i) the line above. For (ii) it\u0027s a matter of regexp.","commit_id":"128924d75d7df4989a0baa5baadf13a0543adaf1"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"abe7fb21c91a45e11231e70f4eaa65de92bfda52","unresolved":false,"context_lines":[{"line_number":123,"context_line":"def check_redundant_import_alias(logical_line):"},{"line_number":124,"context_line":"    \"\"\"Checking no redundant import alias."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    https://bugs.launchpad.net/watcher/+bug/1745527"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    NDO3"},{"line_number":129,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_d9689f22","line":126,"range":{"start_line":126,"start_character":4,"end_line":126,"end_character":51},"updated":"2018-01-28 14:40:06.000000000","message":"the bug refers to a project that is not ours","commit_id":"128924d75d7df4989a0baa5baadf13a0543adaf1"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"0b2ebbcc478e3da9b0ce703482b3c6a3fcd0b101","unresolved":false,"context_lines":[{"line_number":123,"context_line":"def check_redundant_import_alias(logical_line):"},{"line_number":124,"context_line":"    \"\"\"Checking no redundant import alias."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    https://bugs.launchpad.net/watcher/+bug/1745527"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    NDO3"},{"line_number":129,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_79814b8f","line":126,"range":{"start_line":126,"start_character":4,"end_line":126,"end_character":51},"in_reply_to":"5f93b717_d9689f22","updated":"2018-01-28 15:35:39.000000000","message":"Done","commit_id":"128924d75d7df4989a0baa5baadf13a0543adaf1"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f3a2fc81588d6a2c2436abf6fa7c3d6e5268e03b","unresolved":false,"context_lines":[{"line_number":123,"context_line":"def check_redundant_import_alias(logical_line):"},{"line_number":124,"context_line":"    \"\"\"Checking no redundant import alias."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    https://bugs.launchpad.net/networking-odl/+bug/1745527"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    NDO3"},{"line_number":129,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_eb744638","line":126,"range":{"start_line":126,"start_character":4,"end_line":126,"end_character":58},"updated":"2018-01-31 18:12:43.000000000","message":"don\u0027t have bug link in docstring, its for explanation of method arguments and return types, link can be homed as comment above the L123 or some with in method as comment.","commit_id":"a8d156dfbf26cb6e6e56a8cdbe9003ef7a4f5813"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"ec03c7493ee1790a03c9d0dbf406112416b2aefb","unresolved":false,"context_lines":[{"line_number":123,"context_line":"def check_redundant_import_alias(logical_line):"},{"line_number":124,"context_line":"    \"\"\"Checking no redundant import alias."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    https://bugs.launchpad.net/networking-odl/+bug/1745527"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    NDO3"},{"line_number":129,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_6e159be4","line":126,"range":{"start_line":126,"start_character":4,"end_line":126,"end_character":58},"in_reply_to":"5f93b717_eb744638","updated":"2018-02-01 02:07:49.000000000","message":"Done","commit_id":"a8d156dfbf26cb6e6e56a8cdbe9003ef7a4f5813"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"93766f382930d9a0c0f6a756af28288e2590dc8b","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    \"\"\""},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":132,"context_line":"        yield(0, \"NDO3: No redundant import alias.\")"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_93162255","line":132,"range":{"start_line":132,"start_character":24,"end_line":132,"end_character":50},"updated":"2018-01-31 15:40:02.000000000","message":"please improve this message.\nThose who see this message can\u0027t understand what to do whitout looking this code.\ne.g. add example or something like that.","commit_id":"a8d156dfbf26cb6e6e56a8cdbe9003ef7a4f5813"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"ec03c7493ee1790a03c9d0dbf406112416b2aefb","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    \"\"\""},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":132,"context_line":"        yield(0, \"NDO3: No redundant import alias.\")"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_0ed65729","line":132,"range":{"start_line":132,"start_character":24,"end_line":132,"end_character":50},"in_reply_to":"5f93b717_93162255","updated":"2018-02-01 02:07:49.000000000","message":"Done","commit_id":"a8d156dfbf26cb6e6e56a8cdbe9003ef7a4f5813"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f65bd0bd5bd14c9db198cc13849d902f67abfe21","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    \"\"\""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":131,"context_line":"        yield(0, \"NDO3: No over verbose import\")"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f93b717_5fb95812","line":131,"range":{"start_line":131,"start_character":24,"end_line":131,"end_character":47},"updated":"2018-02-01 17:28:28.000000000","message":"this is still cryptic, what about having it as,\n\n\"Importing module with alias same as module isn\u0027t allowed\" ?","commit_id":"73d041706f96b98609c68cd3679b4ed37312e294"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"6e8347f3552688dd90fbfeab01966422838a7d8c","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    \"\"\""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":131,"context_line":"        yield(0, \"NDO3: No over verbose import\")"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_9f07e518","line":131,"range":{"start_line":131,"start_character":24,"end_line":131,"end_character":46},"updated":"2018-02-13 03:08:16.000000000","message":"This message needs to be improved so that developer can understand what to do.\nJust put brief version of line 126-127.","commit_id":"5fc92cd2dd2ddcbdb723a280ce864938a629e3f0"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"68a7d7eaef77b392f1557b17477dc3a37b1e4297","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    \"\"\""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":131,"context_line":"        yield(0, \"NDO3: No over verbose import\")"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_13d1a5fb","line":131,"range":{"start_line":131,"start_character":24,"end_line":131,"end_character":46},"in_reply_to":"3fa0c359_9f07e518","updated":"2018-02-22 18:40:45.000000000","message":"+1","commit_id":"5fc92cd2dd2ddcbdb723a280ce864938a629e3f0"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"eb84612a047572b0995ea2e312ae882499366489","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    \" instead of %s\")  # noqa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"_ND02_REGEXP_DIRECT \u003d re.compile(r\u0027cfg\\.CONF\\..* \u003d\u0027)"},{"line_number":36,"context_line":"RE_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\".*import (.+) as \\1$\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":7,"id":"df7087c5_9ceab20c","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":25},"updated":"2018-03-14 15:51:24.000000000","message":"prefix it with _ND03 as the others...","commit_id":"7655ff02215fd433d24afe1fce3cbd62167fe909"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"eb84612a047572b0995ea2e312ae882499366489","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    \"\"\""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":131,"context_line":"        yield(0, \"NDO3: No duplicate import\")"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":7,"id":"df7087c5_5cf09afd","line":131,"range":{"start_line":131,"start_character":17,"end_line":131,"end_character":44},"updated":"2018-03-14 15:51:24.000000000","message":"+1, make it more clear what you mean by this error and also put it in a constan, like the othters...","commit_id":"7655ff02215fd433d24afe1fce3cbd62167fe909"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"058538032d1e3d4c76d12ae731ba2b64f131c76f","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    \"\"\""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    if re.match(RE_REDUNDANT_IMPORT_ALIAS, logical_line):"},{"line_number":131,"context_line":"        yield(0, \"NDO3: No duplicate import\")"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":7,"id":"df7087c5_82a8891f","line":131,"range":{"start_line":131,"start_character":17,"end_line":131,"end_character":44},"updated":"2018-03-09 00:25:07.000000000","message":"same to PS5.","commit_id":"7655ff02215fd433d24afe1fce3cbd62167fe909"},{"author":{"_account_id":23630,"name":"Tovin Seven","email":"tovin07@gmail.com","username":"tovin07"},"change_message_id":"24dc036cfc0484340576669beb39c1ec822d9d3c","unresolved":false,"context_lines":[{"line_number":37,"context_line":"_ND03_MSG \u003d ("},{"line_number":38,"context_line":"    \"ND03: The import of %s has a redundant alias.\""},{"line_number":39,"context_line":")"},{"line_number":40,"context_line":"_ND03_REGEXP_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\u0027.*import (.+) as \\1$\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_4042c43f","line":40,"range":{"start_line":40,"start_character":61,"end_line":40,"end_character":63},"updated":"2018-06-01 04:01:32.000000000","message":"I think that you may optimize this with .+? for lazy.","commit_id":"776e91f42396f1057382787180be732ff390f69d"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"9efa89c48bf2d82af4f7ead35ab86a177ab40d15","unresolved":false,"context_lines":[{"line_number":37,"context_line":"_ND03_MSG \u003d ("},{"line_number":38,"context_line":"    \"ND03: The import of %s has a redundant alias.\""},{"line_number":39,"context_line":")"},{"line_number":40,"context_line":"_ND03_REGEXP_REDUNDANT_IMPORT_ALIAS \u003d re.compile(r\u0027.*import (.+) as \\1$\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def check_opendaylight_lowercase(logical_line, filename, noqa):"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_3c4d39c4","line":40,"range":{"start_line":40,"start_character":61,"end_line":40,"end_character":63},"in_reply_to":"5f7c97a3_4042c43f","updated":"2018-06-05 08:34:52.000000000","message":"Actually lazy quantifiers are more expensive, as the regex engine has to backtrack all the time to match the shortest string. Lazy should only be used when you actually need the shortest match.","commit_id":"776e91f42396f1057382787180be732ff390f69d"},{"author":{"_account_id":23630,"name":"Tovin Seven","email":"tovin07@gmail.com","username":"tovin07"},"change_message_id":"24dc036cfc0484340576669beb39c1ec822d9d3c","unresolved":false,"context_lines":[{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    match \u003d re.match(_ND03_REGEXP_REDUNDANT_IMPORT_ALIAS, logical_line)"},{"line_number":135,"context_line":"    if match:"},{"line_number":136,"context_line":"        yield(0, _ND03_MSG % match.group(1))"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_603d80b9","line":136,"range":{"start_line":136,"start_character":13,"end_line":136,"end_character":14},"updated":"2018-06-01 04:01:32.000000000","message":"add a space for readability","commit_id":"776e91f42396f1057382787180be732ff390f69d"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"9efa89c48bf2d82af4f7ead35ab86a177ab40d15","unresolved":false,"context_lines":[{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    match \u003d re.match(_ND03_REGEXP_REDUNDANT_IMPORT_ALIAS, logical_line)"},{"line_number":135,"context_line":"    if match:"},{"line_number":136,"context_line":"        yield(0, _ND03_MSG % match.group(1))"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"def factory(register):"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_7c017139","line":136,"range":{"start_line":136,"start_character":13,"end_line":136,"end_character":14},"in_reply_to":"5f7c97a3_603d80b9","updated":"2018-06-05 08:34:52.000000000","message":"Done","commit_id":"776e91f42396f1057382787180be732ff390f69d"}]}
