{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint/pulls/comments/34689482","id":34689482,"diff_hunk":"@@ -287,6 +287,22 @@ eslintTester.addRuleTest(\"lib/rules/valid-jsdoc\", {\n                 message: \"Unexpected @returns tag; function has no return statement.\",\n                 type: \"Block\"\n             }]\n+        },\n+        {\n+            code: \"/**\\n * Some text\\n *\\n * @param arg [optional] text description\\n */\\nfunction testFunction(arg) {}\",","path":"tests/lib/rules/valid-jsdoc.js","position":6,"original_position":6,"commit_id":"e89414fab17b493908fe48307dfd37e653be8194","original_commit_id":"e89414fab17b493908fe48307dfd37e653be8194","user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"body":"Then it seems you've solved a different (unreported) bug, but the one in #2270 still is not resolved. So you can either open a new issue describing this bug, or add the description to #2270 and include a fix for that bug in this PR.","created_at":"2015-07-15T15:17:56Z","updated_at":"2015-07-15T15:17:56Z","html_url":"https://github.com/eslint/eslint/pull/2983#discussion_r34689482","pull_request_url":"https://api.github.com/repos/eslint/eslint/pulls/2983","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/34689482"},"html":{"href":"https://github.com/eslint/eslint/pull/2983#discussion_r34689482"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2983"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/2983","id":39797190,"html_url":"https://github.com/eslint/eslint/pull/2983","diff_url":"https://github.com/eslint/eslint/pull/2983.diff","patch_url":"https://github.com/eslint/eslint/pull/2983.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2983","number":2983,"state":"open","locked":false,"title":"Only add tag to the params object if tag.name is defined","user":{"login":"andreas-marschke","id":1198936,"avatar_url":"https://avatars.githubusercontent.com/u/1198936?v=3","gravatar_id":"","url":"https://api.github.com/users/andreas-marschke","html_url":"https://github.com/andreas-marschke","followers_url":"https://api.github.com/users/andreas-marschke/followers","following_url":"https://api.github.com/users/andreas-marschke/following{/other_user}","gists_url":"https://api.github.com/users/andreas-marschke/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-marschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-marschke/subscriptions","organizations_url":"https://api.github.com/users/andreas-marschke/orgs","repos_url":"https://api.github.com/users/andreas-marschke/repos","events_url":"https://api.github.com/users/andreas-marschke/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-marschke/received_events","type":"User","site_admin":false},"body":"This PR fixes issue #2270 . When the parsed jsDoc code is checked for param tags the code expects `tag.name` to be present which isn't always the case when dealing with non-standard jsDoc code. \r\n\r\nThis PR will add a test against this plus a check for `tag.name` in the rule. ","created_at":"2015-07-13T10:20:16Z","updated_at":"2015-07-15T15:17:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccf6b7f74c432db5158867ff5b7ee794bef7d772","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/2983/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/2983/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2983/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/e89414fab17b493908fe48307dfd37e653be8194","head":{"label":"andreas-marschke:fix-valid-jsdoc-cannot-read-property-indexOf","ref":"fix-valid-jsdoc-cannot-read-property-indexOf","sha":"e89414fab17b493908fe48307dfd37e653be8194","user":{"login":"andreas-marschke","id":1198936,"avatar_url":"https://avatars.githubusercontent.com/u/1198936?v=3","gravatar_id":"","url":"https://api.github.com/users/andreas-marschke","html_url":"https://github.com/andreas-marschke","followers_url":"https://api.github.com/users/andreas-marschke/followers","following_url":"https://api.github.com/users/andreas-marschke/following{/other_user}","gists_url":"https://api.github.com/users/andreas-marschke/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-marschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-marschke/subscriptions","organizations_url":"https://api.github.com/users/andreas-marschke/orgs","repos_url":"https://api.github.com/users/andreas-marschke/repos","events_url":"https://api.github.com/users/andreas-marschke/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-marschke/received_events","type":"User","site_admin":false},"repo":{"id":38946281,"name":"eslint","full_name":"andreas-marschke/eslint","owner":{"login":"andreas-marschke","id":1198936,"avatar_url":"https://avatars.githubusercontent.com/u/1198936?v=3","gravatar_id":"","url":"https://api.github.com/users/andreas-marschke","html_url":"https://github.com/andreas-marschke","followers_url":"https://api.github.com/users/andreas-marschke/followers","following_url":"https://api.github.com/users/andreas-marschke/following{/other_user}","gists_url":"https://api.github.com/users/andreas-marschke/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-marschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-marschke/subscriptions","organizations_url":"https://api.github.com/users/andreas-marschke/orgs","repos_url":"https://api.github.com/users/andreas-marschke/repos","events_url":"https://api.github.com/users/andreas-marschke/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-marschke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreas-marschke/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/andreas-marschke/eslint","forks_url":"https://api.github.com/repos/andreas-marschke/eslint/forks","keys_url":"https://api.github.com/repos/andreas-marschke/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreas-marschke/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreas-marschke/eslint/teams","hooks_url":"https://api.github.com/repos/andreas-marschke/eslint/hooks","issue_events_url":"https://api.github.com/repos/andreas-marschke/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/andreas-marschke/eslint/events","assignees_url":"https://api.github.com/repos/andreas-marschke/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/andreas-marschke/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/andreas-marschke/eslint/tags","blobs_url":"https://api.github.com/repos/andreas-marschke/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreas-marschke/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreas-marschke/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreas-marschke/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreas-marschke/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/andreas-marschke/eslint/languages","stargazers_url":"https://api.github.com/repos/andreas-marschke/eslint/stargazers","contributors_url":"https://api.github.com/repos/andreas-marschke/eslint/contributors","subscribers_url":"https://api.github.com/repos/andreas-marschke/eslint/subscribers","subscription_url":"https://api.github.com/repos/andreas-marschke/eslint/subscription","commits_url":"https://api.github.com/repos/andreas-marschke/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreas-marschke/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreas-marschke/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreas-marschke/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreas-marschke/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/andreas-marschke/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreas-marschke/eslint/merges","archive_url":"https://api.github.com/repos/andreas-marschke/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreas-marschke/eslint/downloads","issues_url":"https://api.github.com/repos/andreas-marschke/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/andreas-marschke/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/andreas-marschke/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/andreas-marschke/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreas-marschke/eslint/labels{/name}","releases_url":"https://api.github.com/repos/andreas-marschke/eslint/releases{/id}","created_at":"2015-07-12T01:31:54Z","updated_at":"2015-07-12T01:31:56Z","pushed_at":"2015-07-13T10:16:54Z","git_url":"git://github.com/andreas-marschke/eslint.git","ssh_url":"git@github.com:andreas-marschke/eslint.git","clone_url":"https://github.com/andreas-marschke/eslint.git","svn_url":"https://github.com/andreas-marschke/eslint","homepage":"http://eslint.org","size":5823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"eslint:master","ref":"master","sha":"556baa4dbe460d6c9b6320b45aaa56b475bcbcb2","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","created_at":"2013-06-29T23:59:48Z","updated_at":"2015-07-15T10:00:45Z","pushed_at":"2015-07-15T15:00:56Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":18568,"stargazers_count":2503,"watchers_count":2503,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":459,"mirror_url":null,"open_issues_count":133,"forks":459,"open_issues":133,"watchers":2503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2983"},"html":{"href":"https://github.com/eslint/eslint/pull/2983"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/2983"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/2983/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2983/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2983/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/e89414fab17b493908fe48307dfd37e653be8194"}}}}