{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2211","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2211/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2211/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2211/events","html_url":"https://github.com/eslint/eslint/issues/2211","id":65785822,"number":2211,"title":"'padded-blocks' interprets comments as blank lines","user":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T21:46:38Z","updated_at":"2015-04-01T21:51:04Z","closed_at":null,"body":"I was not expecting [padded-blocks](http://eslint.org/docs/rules/padded-blocks) to result in errors when a comment is the first or last line of a block. Assuming this is a bug but it could also be intentional.\r\n\r\nRule:\r\n\r\n```\r\n\"padded-blocks\": [2, \"never\"],\r\n```\r\n\r\nCode:\r\n\r\n```\r\nfunction fn(a, b) {\r\n  /**\r\n   * comment\r\n   */\r\n  return function () {\r\n    return a + b;\r\n  };\r\n}\r\n```\r\n\r\nError:\r\n\r\n```\r\nerror  Block must not be padded by blank lines  padded-blocks\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/88643015","html_url":"https://github.com/eslint/eslint/issues/2211#issuecomment-88643015","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2211","id":88643015,"user":{"login":"lo1tuma","id":169170,"avatar_url":"https://avatars.githubusercontent.com/u/169170?v=3","gravatar_id":"","url":"https://api.github.com/users/lo1tuma","html_url":"https://github.com/lo1tuma","followers_url":"https://api.github.com/users/lo1tuma/followers","following_url":"https://api.github.com/users/lo1tuma/following{/other_user}","gists_url":"https://api.github.com/users/lo1tuma/gists{/gist_id}","starred_url":"https://api.github.com/users/lo1tuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lo1tuma/subscriptions","organizations_url":"https://api.github.com/users/lo1tuma/orgs","repos_url":"https://api.github.com/users/lo1tuma/repos","events_url":"https://api.github.com/users/lo1tuma/events{/privacy}","received_events_url":"https://api.github.com/users/lo1tuma/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T21:51:04Z","updated_at":"2015-04-01T21:51:04Z","body":"`padded-blocks` shouldn’t count comments as empty lines, there is a [test-case for this scenario](https://github.com/eslint/eslint/blob/89b1ee3a06370197e060fe6688b40d1b587ee1af/tests/lib/rules/padded-blocks.js#L37).\r\n\r\nCan you provide more information? Do you use the default parser `espree` or a different parser?"}}