{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint/pulls/comments/23891835","id":23891835,"diff_hunk":"@@ -130,13 +130,18 @@ The return value is an object containing the results of the linting operation. H\n                     column: 23,\n                     message: \"Expected a semicolon.\"\n                 }\n-            ]\n+            ],\n+            errorCount: 1,\n+            warningCount: 0\n         }\n-    ]\n+    ],\n+    errorCount: 1,\n+    warningCount: 0\n }\n ```\n \n-The top-level report object has a `results` array containing all linting results for files that had warnings or errors (any files that did not product a warning or error are omitted). Each file result includes the `filePath` and a `messages` array. The `messages` array contains the result of calling `linter.verify()` on the given file.\n+The top-level report object has a `results` array containing all linting results for files that had warnings or errors (any files that did not product a warning or error are omitted). Each file result includes the `filePath`, a `messages` array, `errorCount` and `warningCount`. The `messages` array contains the result of calling `linter.verify()` on the given file. The `errorCount` and `warningCount` gives the exact number of errors and warning respectively on the given file.\n+The top-level report object also has `errorCount` and `warningCount` which gives the exact number of errors and warning respectively on all the files.","path":"docs/developer-guide/nodejs-api.md","position":18,"original_position":18,"commit_id":"0eca646bce1a0475e3ac722b053ecb4677f909cd","original_commit_id":"0eca646bce1a0475e3ac722b053ecb4677f909cd","user":{"login":"btmills","id":1709537,"avatar_url":"https://avatars.githubusercontent.com/u/1709537?v=3","gravatar_id":"","url":"https://api.github.com/users/btmills","html_url":"https://github.com/btmills","followers_url":"https://api.github.com/users/btmills/followers","following_url":"https://api.github.com/users/btmills/following{/other_user}","gists_url":"https://api.github.com/users/btmills/gists{/gist_id}","starred_url":"https://api.github.com/users/btmills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btmills/subscriptions","organizations_url":"https://api.github.com/users/btmills/orgs","repos_url":"https://api.github.com/users/btmills/repos","events_url":"https://api.github.com/users/btmills/events{/privacy}","received_events_url":"https://api.github.com/users/btmills/received_events","type":"User","site_admin":false},"body":"The Markdown parser on the site has been known to be finicky. This line is formatted like a new paragraph, but it lacks a preceding empty line, so I'm not sure whether it will choke. Can you either add a blank line before this if it's supposed to be a separate paragraph, or make sure it's part of line 143?","created_at":"2015-01-31T20:41:25Z","updated_at":"2015-01-31T20:41:25Z","html_url":"https://github.com/eslint/eslint/pull/1749#discussion_r23891835","pull_request_url":"https://api.github.com/repos/eslint/eslint/pulls/1749","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/23891835"},"html":{"href":"https://github.com/eslint/eslint/pull/1749#discussion_r23891835"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1749"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/1749","id":28324070,"html_url":"https://github.com/eslint/eslint/pull/1749","diff_url":"https://github.com/eslint/eslint/pull/1749.diff","patch_url":"https://github.com/eslint/eslint/pull/1749.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1749","number":1749,"state":"open","locked":false,"title":"Update: CLIEngine results include warning and error count (fixes #1732)","user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"body":"Included count at the file level also so that it becomes easy to identify for each file.","created_at":"2015-01-29T23:11:23Z","updated_at":"2015-01-31T20:41:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f92a1263cf96c2dc8a3e99d13efb84f469e1f0eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/1749/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/1749/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments/{number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1749/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/0eca646bce1a0475e3ac722b053ecb4677f909cd","head":{"label":"gyandeeps:master","ref":"master","sha":"0eca646bce1a0475e3ac722b053ecb4677f909cd","user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"repo":{"id":30043256,"name":"eslint","full_name":"gyandeeps/eslint","owner":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gyandeeps/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/gyandeeps/eslint","forks_url":"https://api.github.com/repos/gyandeeps/eslint/forks","keys_url":"https://api.github.com/repos/gyandeeps/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gyandeeps/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gyandeeps/eslint/teams","hooks_url":"https://api.github.com/repos/gyandeeps/eslint/hooks","issue_events_url":"https://api.github.com/repos/gyandeeps/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/gyandeeps/eslint/events","assignees_url":"https://api.github.com/repos/gyandeeps/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/gyandeeps/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/gyandeeps/eslint/tags","blobs_url":"https://api.github.com/repos/gyandeeps/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gyandeeps/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gyandeeps/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/gyandeeps/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gyandeeps/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/gyandeeps/eslint/languages","stargazers_url":"https://api.github.com/repos/gyandeeps/eslint/stargazers","contributors_url":"https://api.github.com/repos/gyandeeps/eslint/contributors","subscribers_url":"https://api.github.com/repos/gyandeeps/eslint/subscribers","subscription_url":"https://api.github.com/repos/gyandeeps/eslint/subscription","commits_url":"https://api.github.com/repos/gyandeeps/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/gyandeeps/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/gyandeeps/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/gyandeeps/eslint/issues/comments/{number}","contents_url":"https://api.github.com/repos/gyandeeps/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/gyandeeps/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gyandeeps/eslint/merges","archive_url":"https://api.github.com/repos/gyandeeps/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gyandeeps/eslint/downloads","issues_url":"https://api.github.com/repos/gyandeeps/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/gyandeeps/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/gyandeeps/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/gyandeeps/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gyandeeps/eslint/labels{/name}","releases_url":"https://api.github.com/repos/gyandeeps/eslint/releases{/id}","created_at":"2015-01-29T21:55:14Z","updated_at":"2015-01-30T16:20:38Z","pushed_at":"2015-01-30T16:20:36Z","git_url":"git://github.com/gyandeeps/eslint.git","ssh_url":"git@github.com:gyandeeps/eslint.git","clone_url":"https://github.com/gyandeeps/eslint.git","svn_url":"https://github.com/gyandeeps/eslint","homepage":"http://eslint.org","size":4001,"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":"af38efa678dce52513c4bdeae37591335d4efcb3","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-01-31T19:14:02Z","pushed_at":"2015-01-31T20:22:21Z","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":11418,"stargazers_count":1539,"watchers_count":1539,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":258,"mirror_url":null,"open_issues_count":99,"forks":258,"open_issues":99,"watchers":1539,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1749"},"html":{"href":"https://github.com/eslint/eslint/pull/1749"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/1749"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/1749/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1749/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1749/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/0eca646bce1a0475e3ac722b053ecb4677f909cd"}}}}