{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3379","repository_url":"https://api.github.com/repos/checkstyle/checkstyle","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3379/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3379/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3379/events","html_url":"https://github.com/checkstyle/checkstyle/issues/3379","id":168403156,"number":3379,"title":"Rule to enforce popular Java class declaration whitespace style","user":{"login":"mcandre","id":5316,"avatar_url":"https://avatars.githubusercontent.com/u/5316?v=3","gravatar_id":"","url":"https://api.github.com/users/mcandre","html_url":"https://github.com/mcandre","followers_url":"https://api.github.com/users/mcandre/followers","following_url":"https://api.github.com/users/mcandre/following{/other_user}","gists_url":"https://api.github.com/users/mcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/mcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcandre/subscriptions","organizations_url":"https://api.github.com/users/mcandre/orgs","repos_url":"https://api.github.com/users/mcandre/repos","events_url":"https://api.github.com/users/mcandre/events{/privacy}","received_events_url":"https://api.github.com/users/mcandre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-29T20:03:00Z","updated_at":"2016-08-12T21:26:58Z","closed_at":null,"body":"Oracle, IBM, Google, and Mozilla Java code often inserts a blank line between the opening curly brace of a class declaration and the class contents, as well as a blank line between the contents and the closing class curly brace. For example:\r\n\r\nhttps://github.com/oracle/atg-maven-plugin/blob/master/src/main/java/com/oracle/atg/ateam/RunAssemblerMojo.java\r\n\r\nClasses with no contents require no blank lines:\r\n\r\n```\r\npublic class SomeClass {}\r\n```\r\n\r\nCould Checkstyle please feature a rule that enforces n (0, 1, 2, ...) blank lines in this context?\r\n\r\nThere appears to be a rule for enforcing a blank line at the beginning of class declarations, but I can't find one to enforce a blank line at the end as well.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36474798-rule-to-enforce-popular-java-class-declaration-whitespace-style?utm_campaign=plugin&utm_content=tracker%2F500528&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F500528&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/239563953","html_url":"https://github.com/checkstyle/checkstyle/issues/3379#issuecomment-239563953","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3379","id":239563953,"user":{"login":"eric-milles","id":18193802,"avatar_url":"https://avatars.githubusercontent.com/u/18193802?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-milles","html_url":"https://github.com/eric-milles","followers_url":"https://api.github.com/users/eric-milles/followers","following_url":"https://api.github.com/users/eric-milles/following{/other_user}","gists_url":"https://api.github.com/users/eric-milles/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-milles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-milles/subscriptions","organizations_url":"https://api.github.com/users/eric-milles/orgs","repos_url":"https://api.github.com/users/eric-milles/repos","events_url":"https://api.github.com/users/eric-milles/events{/privacy}","received_events_url":"https://api.github.com/users/eric-milles/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T21:26:58Z","updated_at":"2016-08-12T21:26:58Z","body":"I can understand the blank line at the start of the class def to give some space before the first field or method.  But why at the end?  A closing brace followed by another with proper indentation seems fine.\r\n\r\n```java\r\n    }\r\n}\r\n```\r\n\r\nI can tell the class is closed as the last brace in the file, also no indent clues me in."}}
{"actor":{"display_login":"eric-milles"}}