{"action":"created","comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/24846924","id":24846924,"diff_hunk":"@@ -0,0 +1,104 @@\n+/**\n+ * Disallow a newline after blocks\n+ *\n+ * Type: `Boolean`\n+ *\n+ * Values: `true`\n+ *\n+ * #### Example\n+ *\n+ * ```js\n+ * \"disallowPaddingNewLinesAfterBlocks\": true\n+ * ```\n+ *\n+ * ##### Valid\n+ *\n+ * ```js\n+  * function () {\n+ *     for (var i = 0; i < 2; i++) {\n+ *         if (true) {\n+ *             return false;\n+ *         }\n+ *         continue;\n+ *     }\n+ *     var obj = {\n+ *         foo: function() {\n+ *             return 1;\n+ *         },\n+ *         bar: function() {\n+ *             return 2;\n+ *         }\n+ *     };\n+ * }\n+ * ```\n+ *\n+ * ##### Invalid\n+ *\n+ * ```js\n+ * function () {\n+ *     for (var i = 0; i < 2; i++) {\n+ *         if (true) {\n+ *             return false;\n+ *         }\n+ *\n+ *         continue;\n+ *     }\n+ *\n+ *     var obj = {\n+ *         foo: function() {\n+ *             return 1;\n+ *         },\n+ *\n+ *         bar: function() {\n+ *             return 2;\n+ *         }\n+ *     };\n+ * }\n+ * ```\n+ */\n+\n+var assert = require('assert');\n+\n+module.exports = function() {};\n+\n+module.exports.prototype = {\n+\n+    configure: function(value) {\n+        assert(\n+            typeof value === 'boolean',\n+            'disallowPaddingNewLinesAfterBlocks option requires boolean value'\n+        );\n+        assert(","path":"lib/rules/disallow-padding-newlines-after-blocks.js","position":71,"original_position":71,"commit_id":"e3e7f63a805a95ec99679096e6d8b21d98a25882","original_commit_id":"16cc71ed14bb927a635e5b43157482eadab4911b","user":{"login":"zxqfox","id":677518,"avatar_url":"https://avatars.githubusercontent.com/u/677518?v=3","gravatar_id":"","url":"https://api.github.com/users/zxqfox","html_url":"https://github.com/zxqfox","followers_url":"https://api.github.com/users/zxqfox/followers","following_url":"https://api.github.com/users/zxqfox/following{/other_user}","gists_url":"https://api.github.com/users/zxqfox/gists{/gist_id}","starred_url":"https://api.github.com/users/zxqfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxqfox/subscriptions","organizations_url":"https://api.github.com/users/zxqfox/orgs","repos_url":"https://api.github.com/users/zxqfox/repos","events_url":"https://api.github.com/users/zxqfox/events{/privacy}","received_events_url":"https://api.github.com/users/zxqfox/received_events","type":"User","site_admin":false},"body":"Btw, drop the first assertion if you can ;-) It's ok if not. I'll do it at weekend for all rules.","created_at":"2015-02-17T19:45:22Z","updated_at":"2015-02-17T19:45:22Z","html_url":"https://github.com/jscs-dev/node-jscs/pull/1014#discussion_r24846924","pull_request_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014","_links":{"self":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/24846924"},"html":{"href":"https://github.com/jscs-dev/node-jscs/pull/1014#discussion_r24846924"},"pull_request":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014"}}},"pull_request":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014","id":28871071,"html_url":"https://github.com/jscs-dev/node-jscs/pull/1014","diff_url":"https://github.com/jscs-dev/node-jscs/pull/1014.diff","patch_url":"https://github.com/jscs-dev/node-jscs/pull/1014.patch","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1014","number":1014,"state":"closed","locked":false,"title":"New Rule: requirePaddingNewLinesAfterBlockDeclarations","user":{"login":"TheSavior","id":249164,"avatar_url":"https://avatars.githubusercontent.com/u/249164?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSavior","html_url":"https://github.com/TheSavior","followers_url":"https://api.github.com/users/TheSavior/followers","following_url":"https://api.github.com/users/TheSavior/following{/other_user}","gists_url":"https://api.github.com/users/TheSavior/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSavior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSavior/subscriptions","organizations_url":"https://api.github.com/users/TheSavior/orgs","repos_url":"https://api.github.com/users/TheSavior/repos","events_url":"https://api.github.com/users/TheSavior/events{/privacy}","received_events_url":"https://api.github.com/users/TheSavior/received_events","type":"User","site_admin":false},"body":"requirePaddingNewLinesAfterBlockDeclarations / disallowPaddingNewLinesAfterBlockDeclarations\r\n\r\nFixes #1010","created_at":"2015-02-07T22:08:37Z","updated_at":"2015-02-17T19:45:22Z","closed_at":"2015-02-17T15:32:12Z","merged_at":null,"merge_commit_sha":"4cf15b8bf2bd7925fdeeb95fba96215df678ccb1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014/commits","review_comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014/comments","review_comment_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1014/comments","statuses_url":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/e3e7f63a805a95ec99679096e6d8b21d98a25882","head":{"label":"TheSavior:require-padding-newlines-after-block-declarations","ref":"require-padding-newlines-after-block-declarations","sha":"e3e7f63a805a95ec99679096e6d8b21d98a25882","user":{"login":"TheSavior","id":249164,"avatar_url":"https://avatars.githubusercontent.com/u/249164?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSavior","html_url":"https://github.com/TheSavior","followers_url":"https://api.github.com/users/TheSavior/followers","following_url":"https://api.github.com/users/TheSavior/following{/other_user}","gists_url":"https://api.github.com/users/TheSavior/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSavior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSavior/subscriptions","organizations_url":"https://api.github.com/users/TheSavior/orgs","repos_url":"https://api.github.com/users/TheSavior/repos","events_url":"https://api.github.com/users/TheSavior/events{/privacy}","received_events_url":"https://api.github.com/users/TheSavior/received_events","type":"User","site_admin":false},"repo":{"id":30448451,"name":"node-jscs","full_name":"TheSavior/node-jscs","owner":{"login":"TheSavior","id":249164,"avatar_url":"https://avatars.githubusercontent.com/u/249164?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSavior","html_url":"https://github.com/TheSavior","followers_url":"https://api.github.com/users/TheSavior/followers","following_url":"https://api.github.com/users/TheSavior/following{/other_user}","gists_url":"https://api.github.com/users/TheSavior/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSavior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSavior/subscriptions","organizations_url":"https://api.github.com/users/TheSavior/orgs","repos_url":"https://api.github.com/users/TheSavior/repos","events_url":"https://api.github.com/users/TheSavior/events{/privacy}","received_events_url":"https://api.github.com/users/TheSavior/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheSavior/node-jscs","description":"JavaScript Code Style checker","fork":true,"url":"https://api.github.com/repos/TheSavior/node-jscs","forks_url":"https://api.github.com/repos/TheSavior/node-jscs/forks","keys_url":"https://api.github.com/repos/TheSavior/node-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheSavior/node-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheSavior/node-jscs/teams","hooks_url":"https://api.github.com/repos/TheSavior/node-jscs/hooks","issue_events_url":"https://api.github.com/repos/TheSavior/node-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/TheSavior/node-jscs/events","assignees_url":"https://api.github.com/repos/TheSavior/node-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/TheSavior/node-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/TheSavior/node-jscs/tags","blobs_url":"https://api.github.com/repos/TheSavior/node-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheSavior/node-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheSavior/node-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheSavior/node-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheSavior/node-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/TheSavior/node-jscs/languages","stargazers_url":"https://api.github.com/repos/TheSavior/node-jscs/stargazers","contributors_url":"https://api.github.com/repos/TheSavior/node-jscs/contributors","subscribers_url":"https://api.github.com/repos/TheSavior/node-jscs/subscribers","subscription_url":"https://api.github.com/repos/TheSavior/node-jscs/subscription","commits_url":"https://api.github.com/repos/TheSavior/node-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheSavior/node-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheSavior/node-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheSavior/node-jscs/issues/comments/{number}","contents_url":"https://api.github.com/repos/TheSavior/node-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/TheSavior/node-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheSavior/node-jscs/merges","archive_url":"https://api.github.com/repos/TheSavior/node-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheSavior/node-jscs/downloads","issues_url":"https://api.github.com/repos/TheSavior/node-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/TheSavior/node-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/TheSavior/node-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/TheSavior/node-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheSavior/node-jscs/labels{/name}","releases_url":"https://api.github.com/repos/TheSavior/node-jscs/releases{/id}","created_at":"2015-02-07T07:09:21Z","updated_at":"2015-02-17T18:17:11Z","pushed_at":"2015-02-17T19:20:27Z","git_url":"git://github.com/TheSavior/node-jscs.git","ssh_url":"git@github.com:TheSavior/node-jscs.git","clone_url":"https://github.com/TheSavior/node-jscs.git","svn_url":"https://github.com/TheSavior/node-jscs","homepage":"http://jscs.info/","size":2403,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jscs-dev:master","ref":"master","sha":"5fde02156012dd0438abb2793a05abfc871a4242","user":{"login":"jscs-dev","id":8018201,"avatar_url":"https://avatars.githubusercontent.com/u/8018201?v=3","gravatar_id":"","url":"https://api.github.com/users/jscs-dev","html_url":"https://github.com/jscs-dev","followers_url":"https://api.github.com/users/jscs-dev/followers","following_url":"https://api.github.com/users/jscs-dev/following{/other_user}","gists_url":"https://api.github.com/users/jscs-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jscs-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscs-dev/subscriptions","organizations_url":"https://api.github.com/users/jscs-dev/orgs","repos_url":"https://api.github.com/users/jscs-dev/repos","events_url":"https://api.github.com/users/jscs-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jscs-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":10697582,"name":"node-jscs","full_name":"jscs-dev/node-jscs","owner":{"login":"jscs-dev","id":8018201,"avatar_url":"https://avatars.githubusercontent.com/u/8018201?v=3","gravatar_id":"","url":"https://api.github.com/users/jscs-dev","html_url":"https://github.com/jscs-dev","followers_url":"https://api.github.com/users/jscs-dev/followers","following_url":"https://api.github.com/users/jscs-dev/following{/other_user}","gists_url":"https://api.github.com/users/jscs-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jscs-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscs-dev/subscriptions","organizations_url":"https://api.github.com/users/jscs-dev/orgs","repos_url":"https://api.github.com/users/jscs-dev/repos","events_url":"https://api.github.com/users/jscs-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jscs-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jscs-dev/node-jscs","description":"JavaScript Code Style checker","fork":false,"url":"https://api.github.com/repos/jscs-dev/node-jscs","forks_url":"https://api.github.com/repos/jscs-dev/node-jscs/forks","keys_url":"https://api.github.com/repos/jscs-dev/node-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jscs-dev/node-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jscs-dev/node-jscs/teams","hooks_url":"https://api.github.com/repos/jscs-dev/node-jscs/hooks","issue_events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/events","assignees_url":"https://api.github.com/repos/jscs-dev/node-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/jscs-dev/node-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/jscs-dev/node-jscs/tags","blobs_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/jscs-dev/node-jscs/languages","stargazers_url":"https://api.github.com/repos/jscs-dev/node-jscs/stargazers","contributors_url":"https://api.github.com/repos/jscs-dev/node-jscs/contributors","subscribers_url":"https://api.github.com/repos/jscs-dev/node-jscs/subscribers","subscription_url":"https://api.github.com/repos/jscs-dev/node-jscs/subscription","commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/{number}","contents_url":"https://api.github.com/repos/jscs-dev/node-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/jscs-dev/node-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jscs-dev/node-jscs/merges","archive_url":"https://api.github.com/repos/jscs-dev/node-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jscs-dev/node-jscs/downloads","issues_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/jscs-dev/node-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/jscs-dev/node-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/labels{/name}","releases_url":"https://api.github.com/repos/jscs-dev/node-jscs/releases{/id}","created_at":"2013-06-14T20:53:48Z","updated_at":"2015-02-17T15:32:11Z","pushed_at":"2015-02-17T15:32:11Z","git_url":"git://github.com/jscs-dev/node-jscs.git","ssh_url":"git@github.com:jscs-dev/node-jscs.git","clone_url":"https://github.com/jscs-dev/node-jscs.git","svn_url":"https://github.com/jscs-dev/node-jscs","homepage":"http://jscs.info/","size":9095,"stargazers_count":2522,"watchers_count":2522,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":254,"mirror_url":null,"open_issues_count":118,"forks":254,"open_issues":118,"watchers":2522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014"},"html":{"href":"https://github.com/jscs-dev/node-jscs/pull/1014"},"issue":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1014"},"comments":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1014/comments"},"review_comments":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014/comments"},"review_comment":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1014/commits"},"statuses":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/e3e7f63a805a95ec99679096e6d8b21d98a25882"}}}}