{"action":"created","issue":{"url":"https://api.github.com/repos/za-creature/coffeescope/issues/16","repository_url":"https://api.github.com/repos/za-creature/coffeescope","labels_url":"https://api.github.com/repos/za-creature/coffeescope/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/za-creature/coffeescope/issues/16/comments","events_url":"https://api.github.com/repos/za-creature/coffeescope/issues/16/events","html_url":"https://github.com/za-creature/coffeescope/issues/16","id":159075895,"number":16,"title":"Incorrectly warns for variables in list comprehensions with {hoist_local: false}","user":{"login":"saifelse","id":549473,"avatar_url":"https://avatars.githubusercontent.com/u/549473?v=3","gravatar_id":"","url":"https://api.github.com/users/saifelse","html_url":"https://github.com/saifelse","followers_url":"https://api.github.com/users/saifelse/followers","following_url":"https://api.github.com/users/saifelse/following{/other_user}","gists_url":"https://api.github.com/users/saifelse/gists{/gist_id}","starred_url":"https://api.github.com/users/saifelse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saifelse/subscriptions","organizations_url":"https://api.github.com/users/saifelse/orgs","repos_url":"https://api.github.com/users/saifelse/repos","events_url":"https://api.github.com/users/saifelse/events{/privacy}","received_events_url":"https://api.github.com/users/saifelse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/za-creature/coffeescope/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-08T04:20:19Z","updated_at":"2016-06-14T15:26:42Z","closed_at":null,"body":"```zsh\r\necho '(x for x in [1,2,3])' | coffeelint -s -f =(echo '\r\n{\r\n     \"check_scope\": {\r\n        \"module\": \"coffeescope2\",\r\n        \"same_scope\": false,\r\n        \"hoist_local\": false\r\n    }\r\n}\r\n')\r\n```\r\noutputs \r\n\r\n```\r\n  ⚡ stdin\r\n     ⚡ #1: Variable \"x\" used before it was first defined (on line 1, column 8).\r\n```"},"comment":{"url":"https://api.github.com/repos/za-creature/coffeescope/issues/comments/225918574","html_url":"https://github.com/za-creature/coffeescope/issues/16#issuecomment-225918574","issue_url":"https://api.github.com/repos/za-creature/coffeescope/issues/16","id":225918574,"user":{"login":"za-creature","id":1210845,"avatar_url":"https://avatars.githubusercontent.com/u/1210845?v=3","gravatar_id":"","url":"https://api.github.com/users/za-creature","html_url":"https://github.com/za-creature","followers_url":"https://api.github.com/users/za-creature/followers","following_url":"https://api.github.com/users/za-creature/following{/other_user}","gists_url":"https://api.github.com/users/za-creature/gists{/gist_id}","starred_url":"https://api.github.com/users/za-creature/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za-creature/subscriptions","organizations_url":"https://api.github.com/users/za-creature/orgs","repos_url":"https://api.github.com/users/za-creature/repos","events_url":"https://api.github.com/users/za-creature/events{/privacy}","received_events_url":"https://api.github.com/users/za-creature/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T15:26:42Z","updated_at":"2016-06-14T15:26:42Z","body":"Sorry for taking a while to get to this. After giving the matter a lot of thought, I believe I will revert my previous commit and always hoist in comprehensions, thus missing some edge cases like\r\n(x+y for x in [1..10] for y in [1..x])\r\n\r\nReason behind this is that coffeescript's scoping rules are weird at times and both the AST and the generated code in `for` loops contain a generous amount of insanity, as the author(s) themselves state: http://coffeescript.org/documentation/docs/nodes.html#section-160\r\n\r\n"}}
{"actor":{"display_login":"za-creature"}}