{"action":"created","issue":{"url":"https://api.github.com/repos/teamed/qulice/issues/942","repository_url":"https://api.github.com/repos/teamed/qulice","labels_url":"https://api.github.com/repos/teamed/qulice/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/teamed/qulice/issues/942/comments","events_url":"https://api.github.com/repos/teamed/qulice/issues/942/events","html_url":"https://github.com/teamed/qulice/issues/942","id":382994073,"node_id":"MDU6SXNzdWUzODI5OTQwNzM=","number":942,"title":"Please explain why ++ and -- operators are prohibited","user":{"login":"golszewski86","id":45224442,"node_id":"MDQ6VXNlcjQ1MjI0NDQy","avatar_url":"https://avatars1.githubusercontent.com/u/45224442?v=4","gravatar_id":"","url":"https://api.github.com/users/golszewski86","html_url":"https://github.com/golszewski86","followers_url":"https://api.github.com/users/golszewski86/followers","following_url":"https://api.github.com/users/golszewski86/following{/other_user}","gists_url":"https://api.github.com/users/golszewski86/gists{/gist_id}","starred_url":"https://api.github.com/users/golszewski86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golszewski86/subscriptions","organizations_url":"https://api.github.com/users/golszewski86/orgs","repos_url":"https://api.github.com/users/golszewski86/repos","events_url":"https://api.github.com/users/golszewski86/events{/privacy}","received_events_url":"https://api.github.com/users/golszewski86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-21T07:47:02Z","updated_at":"2019-01-02T06:40:13Z","closed_at":null,"author_association":"NONE","body":"Please see qulice-checkstyle/src/main/resources/com/qulice/checkstyle/checks.xml\r\n```\r\n<module name=\"IllegalToken\">\r\n   <property name=\"tokens\" value=\"POST_INC, POST_DEC\"/>\r\n</module>\r\n```\r\nIt prohibits usage of the post increment and decrement operators(like idx++ or idx--), however there is no justification for it. I wasn't able to find one on the intenet except people saying it's more efficient in C/C++.\r\n\r\nCould you please provide justification, and maybe include it in the checks.xml file?"},"comment":{"url":"https://api.github.com/repos/teamed/qulice/issues/comments/450794925","html_url":"https://github.com/teamed/qulice/issues/942#issuecomment-450794925","issue_url":"https://api.github.com/repos/teamed/qulice/issues/942","id":450794925,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc5NDkyNQ==","user":{"login":"golszewski86","id":45224442,"node_id":"MDQ6VXNlcjQ1MjI0NDQy","avatar_url":"https://avatars1.githubusercontent.com/u/45224442?v=4","gravatar_id":"","url":"https://api.github.com/users/golszewski86","html_url":"https://github.com/golszewski86","followers_url":"https://api.github.com/users/golszewski86/followers","following_url":"https://api.github.com/users/golszewski86/following{/other_user}","gists_url":"https://api.github.com/users/golszewski86/gists{/gist_id}","starred_url":"https://api.github.com/users/golszewski86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golszewski86/subscriptions","organizations_url":"https://api.github.com/users/golszewski86/orgs","repos_url":"https://api.github.com/users/golszewski86/repos","events_url":"https://api.github.com/users/golszewski86/events{/privacy}","received_events_url":"https://api.github.com/users/golszewski86/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T06:40:13Z","updated_at":"2019-01-02T06:40:13Z","author_association":"NONE","body":"> Post-increment is bad for a very specific reason -- it returns the value before the increment, which makes code less readable\r\nThat's just an opinion @yegor256, maybe it's less readable for you but not for everyone. I'd expect code quality rules to be based on generally acknowledged rules, not personal opinions about readability."}}
{"actor":{"display_login":"golszewski86"}}