{"action":"closed","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/703","labels_url":"https://api.github.com/repos/jshint/jshint/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/703/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/703/events","html_url":"https://github.com/jshint/jshint/issues/703","id":7708079,"number":703,"title":"Incorrect line number reported for empty block","user":{"login":"npup","id":22461,"avatar_url":"https://avatars.githubusercontent.com/u/22461?v=3","gravatar_id":"","url":"https://api.github.com/users/npup","html_url":"https://github.com/npup","followers_url":"https://api.github.com/users/npup/followers","following_url":"https://api.github.com/users/npup/following{/other_user}","gists_url":"https://api.github.com/users/npup/gists{/gist_id}","starred_url":"https://api.github.com/users/npup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npup/subscriptions","organizations_url":"https://api.github.com/users/npup/orgs","repos_url":"https://api.github.com/users/npup/repos","events_url":"https://api.github.com/users/npup/events{/privacy}","received_events_url":"https://api.github.com/users/npup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-10-19T07:06:26Z","updated_at":"2015-06-11T10:44:13Z","closed_at":"2015-06-11T10:44:13Z","body":"jshinting a file like the one below leaves me puzzled as to why the line number for the error is reported as 16:\r\n\r\n```javascript\r\n/*jshint noempty: true */\r\nvar x;\r\nif (\"undefined\" == typeof x) {\r\n\t// this is an empty block, I admit that :)\r\n\t// I am also telling jshint to warn me about it. Great!\r\n}\r\n\r\n// But, some innocent code gets the blame for the empty block above\r\n// with a complex combination of settings, it took quite a while to spot this...\r\n\r\n// Expected behaviour:\r\n//   warn for empty block on the line where the block starts or ends, or possibly the range (lines 2-5)\r\n// Actual behaviour:\r\n//   1 error: line 16, col 1, Empty block\r\n\r\nvoid 0; // this is not the empty block you are looking for\r\n```\r\n\r\n"}}