{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1480","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1480/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1480/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1480/events","html_url":"https://github.com/jscs-dev/node-jscs/pull/1480","id":90403879,"number":1480,"title":"Support autofix for disallow-trailing-whitespace","user":{"login":"zz85","id":314997,"avatar_url":"https://avatars.githubusercontent.com/u/314997?v=3","gravatar_id":"","url":"https://api.github.com/users/zz85","html_url":"https://github.com/zz85","followers_url":"https://api.github.com/users/zz85/followers","following_url":"https://api.github.com/users/zz85/following{/other_user}","gists_url":"https://api.github.com/users/zz85/gists{/gist_id}","starred_url":"https://api.github.com/users/zz85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz85/subscriptions","organizations_url":"https://api.github.com/users/zz85/orgs","repos_url":"https://api.github.com/users/zz85/repos","events_url":"https://api.github.com/users/zz85/events{/privacy}","received_events_url":"https://api.github.com/users/zz85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T14:27:03Z","updated_at":"2015-06-23T15:17:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1480","html_url":"https://github.com/jscs-dev/node-jscs/pull/1480","diff_url":"https://github.com/jscs-dev/node-jscs/pull/1480.diff","patch_url":"https://github.com/jscs-dev/node-jscs/pull/1480.patch"},"body":"- uses AST tokens by lines instead of just line strings\r\n- uses errors.assert to emit errors\r\n- add disallowTrailingWhitespace rule to mdcs preset\r\n- fixes https://github.com/zz85/mrdoobapproves/issues/38\r\n\r\nThis seems to work fine - I suspect however some of the code could be refactored to use `TokenAssert`.\r\n\r\ncc @gero3 @mikesherov @markelog "},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/114540898","html_url":"https://github.com/jscs-dev/node-jscs/pull/1480#issuecomment-114540898","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1480","id":114540898,"user":{"login":"zz85","id":314997,"avatar_url":"https://avatars.githubusercontent.com/u/314997?v=3","gravatar_id":"","url":"https://api.github.com/users/zz85","html_url":"https://github.com/zz85","followers_url":"https://api.github.com/users/zz85/followers","following_url":"https://api.github.com/users/zz85/following{/other_user}","gists_url":"https://api.github.com/users/zz85/gists{/gist_id}","starred_url":"https://api.github.com/users/zz85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz85/subscriptions","organizations_url":"https://api.github.com/users/zz85/orgs","repos_url":"https://api.github.com/users/zz85/repos","events_url":"https://api.github.com/users/zz85/events{/privacy}","received_events_url":"https://api.github.com/users/zz85/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T15:17:22Z","updated_at":"2015-06-23T15:17:22Z","body":"looks like I've some code coverage to fix. i should also add some autofixing tests, but i'm not where that would go...\r\n\r\n![image](https://cloud.githubusercontent.com/assets/314997/8309607/e5ef70f2-19fd-11e5-96e2-d5b06ad8f6f7.png)\r\n"}}