{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1527","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1527/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1527/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1527/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/1527","id":94849776,"number":1527,"title":"Error processing rule","user":{"login":"DanielHeath","id":47430,"avatar_url":"https://avatars.githubusercontent.com/u/47430?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielHeath","html_url":"https://github.com/DanielHeath","followers_url":"https://api.github.com/users/DanielHeath/followers","following_url":"https://api.github.com/users/DanielHeath/following{/other_user}","gists_url":"https://api.github.com/users/DanielHeath/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielHeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielHeath/subscriptions","organizations_url":"https://api.github.com/users/DanielHeath/orgs","repos_url":"https://api.github.com/users/DanielHeath/repos","events_url":"https://api.github.com/users/DanielHeath/events{/privacy}","received_events_url":"https://api.github.com/users/DanielHeath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-14T01:52:42Z","updated_at":"2015-08-05T17:23:37Z","closed_at":null,"body":"```\r\nError running rule requirePaddingNewLinesBeforeLineComments: This is an issue with JSCS and not your codebase.\r\nPlease file an issue (with the stack trace below) at: https://github.com/jscs-dev/node-jscs/issues/new\r\nTypeError: Cannot read property 'type' of undefined\r\n    at /Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/rules/require-padding-newlines-before-line-comments.js:100:26\r\n    at /Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/js-file.js:483:17\r\n    at Array.forEach (native)\r\n    at Object.JsFile.iterateTokensByType (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/js-file.js:481:26)\r\n    at Object.module.exports.check (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/rules/require-padding-newlines-before-line-comments.js:86:14)\r\n    at null.<anonymous> (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/string-checker.js:165:22)\r\n    at Array.forEach (native)\r\n    at StringChecker._checkJsFile (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/string-checker.js:161:31)\r\n    at StringChecker.checkString (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/string-checker.js:106:14)\r\n    at null.<anonymous> (/Users/daniel.heath/Projects/ask-izzy/ask-izzy/node_modules/jscs/lib/checker.js:44:21) at ./webpack/prod.load.js :\r\n     1 |\r\n--------^\r\n     2 |// Register babel to have ES6 support\r\n     3 |require(\"babel/register\");\r\n```\r\n\r\nThe file it's failing on is:\r\n```\r\n\r\n// Register babel to have ES6 support\r\nrequire(\"babel/register\");\r\nmodule.exports = require(\"./prod.config\");\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24290844-error-processing-rule?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/128083061","html_url":"https://github.com/jscs-dev/node-jscs/issues/1527#issuecomment-128083061","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1527","id":128083061,"user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:23:37Z","updated_at":"2015-08-05T17:23:37Z","body":"Ok can reproduce - not sure why it's giving an internal error. I'l try to make a fix but in the meantime you can remove the first blank line (unless that's intended)"}}