{"action":"created","issue":{"url":"https://api.github.com/repos/Wikia/app/issues/12111","repository_url":"https://api.github.com/repos/Wikia/app","labels_url":"https://api.github.com/repos/Wikia/app/issues/12111/labels{/name}","comments_url":"https://api.github.com/repos/Wikia/app/issues/12111/comments","events_url":"https://api.github.com/repos/Wikia/app/issues/12111/events","html_url":"https://github.com/Wikia/app/pull/12111","id":195279711,"number":12111,"title":"release-464 | XW-2429 | Skip costly and unnecessary operations on file pages","user":{"login":"rogatty","id":7030884,"avatar_url":"https://avatars.githubusercontent.com/u/7030884?v=3","gravatar_id":"","url":"https://api.github.com/users/rogatty","html_url":"https://github.com/rogatty","followers_url":"https://api.github.com/users/rogatty/followers","following_url":"https://api.github.com/users/rogatty/following{/other_user}","gists_url":"https://api.github.com/users/rogatty/gists{/gist_id}","starred_url":"https://api.github.com/users/rogatty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogatty/subscriptions","organizations_url":"https://api.github.com/users/rogatty/orgs","repos_url":"https://api.github.com/users/rogatty/repos","events_url":"https://api.github.com/users/rogatty/events{/privacy}","received_events_url":"https://api.github.com/users/rogatty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T15:16:34Z","updated_at":"2016-12-13T15:17:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/12111","html_url":"https://github.com/Wikia/app/pull/12111","diff_url":"https://github.com/Wikia/app/pull/12111.diff","patch_url":"https://github.com/Wikia/app/pull/12111.patch"},"body":"https://github.com/Wikia/app/pull/12108"},"comment":{"url":"https://api.github.com/repos/Wikia/app/issues/comments/266765105","html_url":"https://github.com/Wikia/app/pull/12111#issuecomment-266765105","issue_url":"https://api.github.com/repos/Wikia/app/issues/12111","id":266765105,"user":{"login":"WikiaTech","id":13279985,"avatar_url":"https://avatars.githubusercontent.com/u/13279985?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiaTech","html_url":"https://github.com/WikiaTech","followers_url":"https://api.github.com/users/WikiaTech/followers","following_url":"https://api.github.com/users/WikiaTech/following{/other_user}","gists_url":"https://api.github.com/users/WikiaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiaTech/subscriptions","organizations_url":"https://api.github.com/users/WikiaTech/orgs","repos_url":"https://api.github.com/users/WikiaTech/repos","events_url":"https://api.github.com/users/WikiaTech/events{/privacy}","received_events_url":"https://api.github.com/users/WikiaTech/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T15:17:06Z","updated_at":"2016-12-13T15:17:06Z","body":"SonarQube analysis reported 10 issues\n\nNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:\n\n1. ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [MercuryApiController.class.php#L360](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L360): Reduce this \"switch/case\" number of lines from 19 to at most 10, for example by extracting code into function. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1151)\n1. ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [MercuryApiController.class.php#L364](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L364): Refactor this code to not nest more than 4 \"if\", \"for\", \"while\", \"switch\" and \"try\" statements. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS134)\n1. ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [MercuryApiController.class.php#L379](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L379): Reduce this \"switch/case\" number of lines from 16 to at most 10, for example by extracting code into function. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1151)\n1. ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [MercuryApiController.class.php#L381](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L381): Refactor this code to not nest more than 4 \"if\", \"for\", \"while\", \"switch\" and \"try\" statements. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS134)\n1. ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [MercuryApiController.class.php#L521](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L521): Remove this commented out code. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS125)\n1. ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [MercuryApiController.class.php#L10](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L10): Define a constant instead of duplicating this literal \"title\" 3 times. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1192)\n1. ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [MercuryApiController.class.php#L316](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L316): Define a constant instead of duplicating this literal \"article\" 5 times. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1192)\n1. ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [MercuryApiController.class.php#L353](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L353): Define a constant instead of duplicating this literal \"details\" 6 times. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1192)\n1. ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [MercuryApiController.class.php#L358](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L358): Replace this \"switch\" statement with \"if\" statements to increase readability. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1301)\n1. ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [MercuryApiController.class.php#L539](https://github.com/Wikia/app/blob/71c5f15bf54b2460779635775fdd517bfe750b94/extensions/wikia/MercuryApi/MercuryApiController.class.php#L539): Define a constant instead of duplicating this literal \"languageName\" 3 times. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1192)\n"}}
{"actor":{"display_login":"WikiaTech"}}