{"action":"created","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2429","repository_url":"https://api.github.com/repos/jshint/jshint","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2429/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2429/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2429/events","html_url":"https://github.com/jshint/jshint/issues/2429","id":83075844,"number":2429,"title":"for loops don't allow latedef","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jshint/jshint/labels/P4","name":"P4","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-31T12:14:17Z","updated_at":"2016-02-04T10:07:14Z","closed_at":null,"body":"The following warns that `i` is a global (line 1) and that `i` is unused from line 3.\r\n```\r\nfor(i in {}) {\r\n}\r\nvar i;\r\n```"},"comment":{"url":"https://api.github.com/repos/jshint/jshint/issues/comments/179746343","html_url":"https://github.com/jshint/jshint/issues/2429#issuecomment-179746343","issue_url":"https://api.github.com/repos/jshint/jshint/issues/2429","id":179746343,"user":{"login":"xak2000","id":1576014,"avatar_url":"https://avatars.githubusercontent.com/u/1576014?v=3","gravatar_id":"","url":"https://api.github.com/users/xak2000","html_url":"https://github.com/xak2000","followers_url":"https://api.github.com/users/xak2000/followers","following_url":"https://api.github.com/users/xak2000/following{/other_user}","gists_url":"https://api.github.com/users/xak2000/gists{/gist_id}","starred_url":"https://api.github.com/users/xak2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xak2000/subscriptions","organizations_url":"https://api.github.com/users/xak2000/orgs","repos_url":"https://api.github.com/users/xak2000/repos","events_url":"https://api.github.com/users/xak2000/events{/privacy}","received_events_url":"https://api.github.com/users/xak2000/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T10:07:14Z","updated_at":"2016-02-04T10:07:14Z","body":"I recently updated JSHint (don't know which version was before) and it starts complain to this code:\r\n```\r\nvar stompClient = {\r\n      getClient: function () {return client;}\r\n    },\r\n    client;\r\n```\r\n`'client' was used before it was defined.`\r\n\r\nThis error is shown when `\"latedef\": \"nofunc\"` or `\"latedef\": true` and not shown when `\"latedef\": false`.\r\n\r\nBefore there was no error with the same options.\r\nDon't know if it is the same case as `for` loop. If no I can open another issue."}}