{"action":"created","comment":{"url":"https://api.github.com/repos/jshint/jshint/pulls/comments/34959545","id":34959545,"diff_hunk":"@@ -401,8 +401,35 @@ var JSHINT = (function() {\n     return i;\n   }\n \n-  function doOption() {\n-    var nt = state.tokens.next;\n+  function doLexOption(nt) {","path":"src/jshint.js","position":32,"original_position":32,"commit_id":"c8e14712643847c277cfebcd6c3e913bfd5c9756","original_commit_id":"c8e14712643847c277cfebcd6c3e913bfd5c9756","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},"body":"I don't like having to add a doLexOption but I don't see a choice to make `maxlen` backwards compatible because lexer options are applied a token before. There are possibly ways to do this with a bigger refactor, but since maxlen will be removed in the next major, my plan was do this for now and remove this function along with maxlen.","created_at":"2015-07-19T16:26:08Z","updated_at":"2015-07-19T16:26:08Z","html_url":"https://github.com/jshint/jshint/pull/2563#discussion_r34959545","pull_request_url":"https://api.github.com/repos/jshint/jshint/pulls/2563","_links":{"self":{"href":"https://api.github.com/repos/jshint/jshint/pulls/comments/34959545"},"html":{"href":"https://github.com/jshint/jshint/pull/2563#discussion_r34959545"},"pull_request":{"href":"https://api.github.com/repos/jshint/jshint/pulls/2563"}}},"pull_request":{"url":"https://api.github.com/repos/jshint/jshint/pulls/2563","id":40299967,"html_url":"https://github.com/jshint/jshint/pull/2563","diff_url":"https://github.com/jshint/jshint/pull/2563.diff","patch_url":"https://github.com/jshint/jshint/pull/2563.patch","issue_url":"https://api.github.com/repos/jshint/jshint/issues/2563","number":2563,"state":"open","locked":false,"title":"support jshint options in comments after function declaration.","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},"body":"Comments welcome, but currently a WIP.\r\n\r\nLooks like 2nd approach might be doable, needs some tweaking as tests don't work at the moment.\r\n\r\nSee #2471\r\n","created_at":"2015-07-18T22:59:51Z","updated_at":"2015-07-19T16:26:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197c0f55b07017f8f502f7230f0ffb23b3470507","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jshint/jshint/pulls/2563/commits","review_comments_url":"https://api.github.com/repos/jshint/jshint/pulls/2563/comments","review_comment_url":"https://api.github.com/repos/jshint/jshint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2563/comments","statuses_url":"https://api.github.com/repos/jshint/jshint/statuses/c8e14712643847c277cfebcd6c3e913bfd5c9756","head":{"label":"lukeapage:jshint-comment-after-function","ref":"jshint-comment-after-function","sha":"c8e14712643847c277cfebcd6c3e913bfd5c9756","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},"repo":{"id":32097211,"name":"jshint","full_name":"lukeapage/jshint","owner":{"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},"private":false,"html_url":"https://github.com/lukeapage/jshint","description":"JSHint is a tool that helps to detect errors and potential problems in your JavaScript code","fork":true,"url":"https://api.github.com/repos/lukeapage/jshint","forks_url":"https://api.github.com/repos/lukeapage/jshint/forks","keys_url":"https://api.github.com/repos/lukeapage/jshint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeapage/jshint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeapage/jshint/teams","hooks_url":"https://api.github.com/repos/lukeapage/jshint/hooks","issue_events_url":"https://api.github.com/repos/lukeapage/jshint/issues/events{/number}","events_url":"https://api.github.com/repos/lukeapage/jshint/events","assignees_url":"https://api.github.com/repos/lukeapage/jshint/assignees{/user}","branches_url":"https://api.github.com/repos/lukeapage/jshint/branches{/branch}","tags_url":"https://api.github.com/repos/lukeapage/jshint/tags","blobs_url":"https://api.github.com/repos/lukeapage/jshint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeapage/jshint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeapage/jshint/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeapage/jshint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeapage/jshint/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeapage/jshint/languages","stargazers_url":"https://api.github.com/repos/lukeapage/jshint/stargazers","contributors_url":"https://api.github.com/repos/lukeapage/jshint/contributors","subscribers_url":"https://api.github.com/repos/lukeapage/jshint/subscribers","subscription_url":"https://api.github.com/repos/lukeapage/jshint/subscription","commits_url":"https://api.github.com/repos/lukeapage/jshint/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeapage/jshint/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeapage/jshint/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeapage/jshint/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeapage/jshint/contents/{+path}","compare_url":"https://api.github.com/repos/lukeapage/jshint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeapage/jshint/merges","archive_url":"https://api.github.com/repos/lukeapage/jshint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeapage/jshint/downloads","issues_url":"https://api.github.com/repos/lukeapage/jshint/issues{/number}","pulls_url":"https://api.github.com/repos/lukeapage/jshint/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeapage/jshint/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeapage/jshint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeapage/jshint/labels{/name}","releases_url":"https://api.github.com/repos/lukeapage/jshint/releases{/id}","created_at":"2015-03-12T19:21:21Z","updated_at":"2015-04-25T09:34:49Z","pushed_at":"2015-07-19T16:24:40Z","git_url":"git://github.com/lukeapage/jshint.git","ssh_url":"git@github.com:lukeapage/jshint.git","clone_url":"https://github.com/lukeapage/jshint.git","svn_url":"https://github.com/lukeapage/jshint","homepage":"http://jshint.com","size":9337,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jshint:master","ref":"master","sha":"16f5779c04204f5127a3f1f85d6031f01dcabc00","user":{"login":"jshint","id":1335450,"avatar_url":"https://avatars.githubusercontent.com/u/1335450?v=3","gravatar_id":"","url":"https://api.github.com/users/jshint","html_url":"https://github.com/jshint","followers_url":"https://api.github.com/users/jshint/followers","following_url":"https://api.github.com/users/jshint/following{/other_user}","gists_url":"https://api.github.com/users/jshint/gists{/gist_id}","starred_url":"https://api.github.com/users/jshint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshint/subscriptions","organizations_url":"https://api.github.com/users/jshint/orgs","repos_url":"https://api.github.com/users/jshint/repos","events_url":"https://api.github.com/users/jshint/events{/privacy}","received_events_url":"https://api.github.com/users/jshint/received_events","type":"Organization","site_admin":false},"repo":{"id":1272666,"name":"jshint","full_name":"jshint/jshint","owner":{"login":"jshint","id":1335450,"avatar_url":"https://avatars.githubusercontent.com/u/1335450?v=3","gravatar_id":"","url":"https://api.github.com/users/jshint","html_url":"https://github.com/jshint","followers_url":"https://api.github.com/users/jshint/followers","following_url":"https://api.github.com/users/jshint/following{/other_user}","gists_url":"https://api.github.com/users/jshint/gists{/gist_id}","starred_url":"https://api.github.com/users/jshint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshint/subscriptions","organizations_url":"https://api.github.com/users/jshint/orgs","repos_url":"https://api.github.com/users/jshint/repos","events_url":"https://api.github.com/users/jshint/events{/privacy}","received_events_url":"https://api.github.com/users/jshint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jshint/jshint","description":"JSHint is a tool that helps to detect errors and potential problems in your JavaScript code","fork":false,"url":"https://api.github.com/repos/jshint/jshint","forks_url":"https://api.github.com/repos/jshint/jshint/forks","keys_url":"https://api.github.com/repos/jshint/jshint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jshint/jshint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jshint/jshint/teams","hooks_url":"https://api.github.com/repos/jshint/jshint/hooks","issue_events_url":"https://api.github.com/repos/jshint/jshint/issues/events{/number}","events_url":"https://api.github.com/repos/jshint/jshint/events","assignees_url":"https://api.github.com/repos/jshint/jshint/assignees{/user}","branches_url":"https://api.github.com/repos/jshint/jshint/branches{/branch}","tags_url":"https://api.github.com/repos/jshint/jshint/tags","blobs_url":"https://api.github.com/repos/jshint/jshint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jshint/jshint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jshint/jshint/git/refs{/sha}","trees_url":"https://api.github.com/repos/jshint/jshint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jshint/jshint/statuses/{sha}","languages_url":"https://api.github.com/repos/jshint/jshint/languages","stargazers_url":"https://api.github.com/repos/jshint/jshint/stargazers","contributors_url":"https://api.github.com/repos/jshint/jshint/contributors","subscribers_url":"https://api.github.com/repos/jshint/jshint/subscribers","subscription_url":"https://api.github.com/repos/jshint/jshint/subscription","commits_url":"https://api.github.com/repos/jshint/jshint/commits{/sha}","git_commits_url":"https://api.github.com/repos/jshint/jshint/git/commits{/sha}","comments_url":"https://api.github.com/repos/jshint/jshint/comments{/number}","issue_comment_url":"https://api.github.com/repos/jshint/jshint/issues/comments{/number}","contents_url":"https://api.github.com/repos/jshint/jshint/contents/{+path}","compare_url":"https://api.github.com/repos/jshint/jshint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jshint/jshint/merges","archive_url":"https://api.github.com/repos/jshint/jshint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jshint/jshint/downloads","issues_url":"https://api.github.com/repos/jshint/jshint/issues{/number}","pulls_url":"https://api.github.com/repos/jshint/jshint/pulls{/number}","milestones_url":"https://api.github.com/repos/jshint/jshint/milestones{/number}","notifications_url":"https://api.github.com/repos/jshint/jshint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jshint/jshint/labels{/name}","releases_url":"https://api.github.com/repos/jshint/jshint/releases{/id}","created_at":"2011-01-19T22:28:53Z","updated_at":"2015-07-19T13:44:16Z","pushed_at":"2015-07-19T16:24:42Z","git_url":"git://github.com/jshint/jshint.git","ssh_url":"git@github.com:jshint/jshint.git","clone_url":"https://github.com/jshint/jshint.git","svn_url":"https://github.com/jshint/jshint","homepage":"http://jshint.com","size":20487,"stargazers_count":5282,"watchers_count":5282,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1087,"mirror_url":null,"open_issues_count":288,"forks":1087,"open_issues":288,"watchers":5282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jshint/jshint/pulls/2563"},"html":{"href":"https://github.com/jshint/jshint/pull/2563"},"issue":{"href":"https://api.github.com/repos/jshint/jshint/issues/2563"},"comments":{"href":"https://api.github.com/repos/jshint/jshint/issues/2563/comments"},"review_comments":{"href":"https://api.github.com/repos/jshint/jshint/pulls/2563/comments"},"review_comment":{"href":"https://api.github.com/repos/jshint/jshint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jshint/jshint/pulls/2563/commits"},"statuses":{"href":"https://api.github.com/repos/jshint/jshint/statuses/c8e14712643847c277cfebcd6c3e913bfd5c9756"}}}}