{"action":"closed","issue":{"url":"https://api.github.com/repos/oclint/oclint/issues/459","repository_url":"https://api.github.com/repos/oclint/oclint","labels_url":"https://api.github.com/repos/oclint/oclint/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/oclint/oclint/issues/459/comments","events_url":"https://api.github.com/repos/oclint/oclint/issues/459/events","html_url":"https://github.com/oclint/oclint/issues/459","id":253501515,"number":459,"title":"Feature Request: Single statement bracket check","user":{"login":"oNaiPs","id":374130,"avatar_url":"https://avatars1.githubusercontent.com/u/374130?v=4","gravatar_id":"","url":"https://api.github.com/users/oNaiPs","html_url":"https://github.com/oNaiPs","followers_url":"https://api.github.com/users/oNaiPs/followers","following_url":"https://api.github.com/users/oNaiPs/following{/other_user}","gists_url":"https://api.github.com/users/oNaiPs/gists{/gist_id}","starred_url":"https://api.github.com/users/oNaiPs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oNaiPs/subscriptions","organizations_url":"https://api.github.com/users/oNaiPs/orgs","repos_url":"https://api.github.com/users/oNaiPs/repos","events_url":"https://api.github.com/users/oNaiPs/events{/privacy}","received_events_url":"https://api.github.com/users/oNaiPs/received_events","type":"User","site_admin":false},"labels":[{"id":646564732,"url":"https://api.github.com/repos/oclint/oclint/labels/ra:waiting-for-reply","name":"ra:waiting-for-reply","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-29T01:20:30Z","updated_at":"2017-12-04T01:59:35Z","closed_at":"2017-12-04T01:59:35Z","author_association":"NONE","body":"### Issue Summary\r\nSingle statements without brackets like \r\n```\r\nif(condition)\r\n  statement;\r\n```\r\nInstead, it should be written as:\r\n```\r\nif(condition) {\r\n  statement;\r\n}\r\n```\r\nAre error prone, such as the infamous Apple SSL `goto fail;` bug.\r\nI think this could be a good optional style rule, with defect reducing implications.\r\n\r\nI'm a C++ developer with experience, would be up to implement it if you could could give me some lights on how can I navigate the AST to do this.\r\n\r\nThanks!"}}
{"actor":{"display_login":"ryuichi-assistant"}}