{"action":"created","comment":{"url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/comments/37158585","id":37158585,"diff_hunk":"@@ -66,7 +66,29 @@ file.csslint.results = []; // CSSLint errors\n file.csslint.opt = {}; // The options you passed to CSSLint\n ```\n \n-## Custom Reporters\n+## Using reporters\n+\n+Several reporters come built-in to css-lint. To use one of these reporters, pass the name to `csslint.reporter`, along with an optional file path. If the file path is included, the report will be written to this location, instead of printed in the console.\n+\n+For a list of all reporters supported by `csslint`, see the [csslint wiki](https://github.com/CSSLint/csslint/wiki/Command-line-interface#--format).\n+\n+```js\n+gulp.task('lint', function() {\n+  gulp.files('lib/*.css')\n+    .pipe(csslint())\n+    .pipe(csslint.reporter('junit-xml'));\n+```\n+\n+If you want to print the report to disk instead of output to the console, supply the a second optional file path where the file will be written.\n+\n+```js\n+gulp.task('lint', function() {\n+  gulp.files('lib/*.css')\n+    .pipe(csslint())\n+    .pipe(csslint.reporter('junit-xml', 'csslint-junit-report.xml'));","path":"README.md","position":24,"original_position":24,"commit_id":"7d602f7d1d308611bf2017d5dec2eeec158df126","original_commit_id":"7d602f7d1d308611bf2017d5dec2eeec158df126","user":{"login":"lazd","id":201344,"avatar_url":"https://avatars.githubusercontent.com/u/201344?v=3","gravatar_id":"","url":"https://api.github.com/users/lazd","html_url":"https://github.com/lazd","followers_url":"https://api.github.com/users/lazd/followers","following_url":"https://api.github.com/users/lazd/following{/other_user}","gists_url":"https://api.github.com/users/lazd/gists{/gist_id}","starred_url":"https://api.github.com/users/lazd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazd/subscriptions","organizations_url":"https://api.github.com/users/lazd/orgs","repos_url":"https://api.github.com/users/lazd/repos","events_url":"https://api.github.com/users/lazd/events{/privacy}","received_events_url":"https://api.github.com/users/lazd/received_events","type":"User","site_admin":false},"body":"Is this \"second argument is reporter filename\" pattern used in any other gulp plugins? If so, I'm all for it, but we should be careful to invent a new pattern if there's a different way that other plugins are doing it.","created_at":"2015-08-17T05:03:05Z","updated_at":"2015-08-17T05:03:05Z","html_url":"https://github.com/lazd/gulp-csslint/pull/21#discussion_r37158585","pull_request_url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/comments/37158585"},"html":{"href":"https://github.com/lazd/gulp-csslint/pull/21#discussion_r37158585"},"pull_request":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21","id":32352997,"html_url":"https://github.com/lazd/gulp-csslint/pull/21","diff_url":"https://github.com/lazd/gulp-csslint/pull/21.diff","patch_url":"https://github.com/lazd/gulp-csslint/pull/21.patch","issue_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/21","number":21,"state":"open","locked":false,"title":"Built in formatters","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"body":"#1 (not tagging in commit (yet), as I foresee a lot of rebasing, and it gets noisy in that issue).\r\n\r\nThis is a rough start on using the build in formatters.\r\n\r\nI haven't tested with multiple css-files, or multiple violations, but a single file with a single violation works fine.\r\n\r\nThe tests seems convoluted as well, any ideas on how to clean it up?","created_at":"2015-03-31T18:47:52Z","updated_at":"2015-08-17T05:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1a31117986daa7b603c4dafa9cb4f8105cca296","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21/commits","review_comments_url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21/comments","review_comment_url":"https://api.github.com/repos/lazd/gulp-csslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/21/comments","statuses_url":"https://api.github.com/repos/lazd/gulp-csslint/statuses/7d602f7d1d308611bf2017d5dec2eeec158df126","head":{"label":"SimenB:built-in-reporters","ref":"built-in-reporters","sha":"7d602f7d1d308611bf2017d5dec2eeec158df126","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"repo":{"id":31229429,"name":"gulp-csslint","full_name":"SimenB/gulp-csslint","owner":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimenB/gulp-csslint","description":"CSSLint plugin for Gulp","fork":true,"url":"https://api.github.com/repos/SimenB/gulp-csslint","forks_url":"https://api.github.com/repos/SimenB/gulp-csslint/forks","keys_url":"https://api.github.com/repos/SimenB/gulp-csslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimenB/gulp-csslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimenB/gulp-csslint/teams","hooks_url":"https://api.github.com/repos/SimenB/gulp-csslint/hooks","issue_events_url":"https://api.github.com/repos/SimenB/gulp-csslint/issues/events{/number}","events_url":"https://api.github.com/repos/SimenB/gulp-csslint/events","assignees_url":"https://api.github.com/repos/SimenB/gulp-csslint/assignees{/user}","branches_url":"https://api.github.com/repos/SimenB/gulp-csslint/branches{/branch}","tags_url":"https://api.github.com/repos/SimenB/gulp-csslint/tags","blobs_url":"https://api.github.com/repos/SimenB/gulp-csslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimenB/gulp-csslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimenB/gulp-csslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimenB/gulp-csslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimenB/gulp-csslint/statuses/{sha}","languages_url":"https://api.github.com/repos/SimenB/gulp-csslint/languages","stargazers_url":"https://api.github.com/repos/SimenB/gulp-csslint/stargazers","contributors_url":"https://api.github.com/repos/SimenB/gulp-csslint/contributors","subscribers_url":"https://api.github.com/repos/SimenB/gulp-csslint/subscribers","subscription_url":"https://api.github.com/repos/SimenB/gulp-csslint/subscription","commits_url":"https://api.github.com/repos/SimenB/gulp-csslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimenB/gulp-csslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimenB/gulp-csslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimenB/gulp-csslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimenB/gulp-csslint/contents/{+path}","compare_url":"https://api.github.com/repos/SimenB/gulp-csslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimenB/gulp-csslint/merges","archive_url":"https://api.github.com/repos/SimenB/gulp-csslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimenB/gulp-csslint/downloads","issues_url":"https://api.github.com/repos/SimenB/gulp-csslint/issues{/number}","pulls_url":"https://api.github.com/repos/SimenB/gulp-csslint/pulls{/number}","milestones_url":"https://api.github.com/repos/SimenB/gulp-csslint/milestones{/number}","notifications_url":"https://api.github.com/repos/SimenB/gulp-csslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimenB/gulp-csslint/labels{/name}","releases_url":"https://api.github.com/repos/SimenB/gulp-csslint/releases{/id}","created_at":"2015-02-23T20:57:49Z","updated_at":"2015-04-24T19:34:58Z","pushed_at":"2015-08-16T12:28:52Z","git_url":"git://github.com/SimenB/gulp-csslint.git","ssh_url":"git@github.com:SimenB/gulp-csslint.git","clone_url":"https://github.com/SimenB/gulp-csslint.git","svn_url":"https://github.com/SimenB/gulp-csslint","homepage":"","size":271,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lazd:master","ref":"master","sha":"b365adf2aa027f5d11173c4158fa347a4b72bff9","user":{"login":"lazd","id":201344,"avatar_url":"https://avatars.githubusercontent.com/u/201344?v=3","gravatar_id":"","url":"https://api.github.com/users/lazd","html_url":"https://github.com/lazd","followers_url":"https://api.github.com/users/lazd/followers","following_url":"https://api.github.com/users/lazd/following{/other_user}","gists_url":"https://api.github.com/users/lazd/gists{/gist_id}","starred_url":"https://api.github.com/users/lazd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazd/subscriptions","organizations_url":"https://api.github.com/users/lazd/orgs","repos_url":"https://api.github.com/users/lazd/repos","events_url":"https://api.github.com/users/lazd/events{/privacy}","received_events_url":"https://api.github.com/users/lazd/received_events","type":"User","site_admin":false},"repo":{"id":15059564,"name":"gulp-csslint","full_name":"lazd/gulp-csslint","owner":{"login":"lazd","id":201344,"avatar_url":"https://avatars.githubusercontent.com/u/201344?v=3","gravatar_id":"","url":"https://api.github.com/users/lazd","html_url":"https://github.com/lazd","followers_url":"https://api.github.com/users/lazd/followers","following_url":"https://api.github.com/users/lazd/following{/other_user}","gists_url":"https://api.github.com/users/lazd/gists{/gist_id}","starred_url":"https://api.github.com/users/lazd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazd/subscriptions","organizations_url":"https://api.github.com/users/lazd/orgs","repos_url":"https://api.github.com/users/lazd/repos","events_url":"https://api.github.com/users/lazd/events{/privacy}","received_events_url":"https://api.github.com/users/lazd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lazd/gulp-csslint","description":"CSSLint plugin for gulp","fork":false,"url":"https://api.github.com/repos/lazd/gulp-csslint","forks_url":"https://api.github.com/repos/lazd/gulp-csslint/forks","keys_url":"https://api.github.com/repos/lazd/gulp-csslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lazd/gulp-csslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lazd/gulp-csslint/teams","hooks_url":"https://api.github.com/repos/lazd/gulp-csslint/hooks","issue_events_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/events{/number}","events_url":"https://api.github.com/repos/lazd/gulp-csslint/events","assignees_url":"https://api.github.com/repos/lazd/gulp-csslint/assignees{/user}","branches_url":"https://api.github.com/repos/lazd/gulp-csslint/branches{/branch}","tags_url":"https://api.github.com/repos/lazd/gulp-csslint/tags","blobs_url":"https://api.github.com/repos/lazd/gulp-csslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lazd/gulp-csslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lazd/gulp-csslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/lazd/gulp-csslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lazd/gulp-csslint/statuses/{sha}","languages_url":"https://api.github.com/repos/lazd/gulp-csslint/languages","stargazers_url":"https://api.github.com/repos/lazd/gulp-csslint/stargazers","contributors_url":"https://api.github.com/repos/lazd/gulp-csslint/contributors","subscribers_url":"https://api.github.com/repos/lazd/gulp-csslint/subscribers","subscription_url":"https://api.github.com/repos/lazd/gulp-csslint/subscription","commits_url":"https://api.github.com/repos/lazd/gulp-csslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/lazd/gulp-csslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/lazd/gulp-csslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/lazd/gulp-csslint/contents/{+path}","compare_url":"https://api.github.com/repos/lazd/gulp-csslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lazd/gulp-csslint/merges","archive_url":"https://api.github.com/repos/lazd/gulp-csslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lazd/gulp-csslint/downloads","issues_url":"https://api.github.com/repos/lazd/gulp-csslint/issues{/number}","pulls_url":"https://api.github.com/repos/lazd/gulp-csslint/pulls{/number}","milestones_url":"https://api.github.com/repos/lazd/gulp-csslint/milestones{/number}","notifications_url":"https://api.github.com/repos/lazd/gulp-csslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lazd/gulp-csslint/labels{/name}","releases_url":"https://api.github.com/repos/lazd/gulp-csslint/releases{/id}","created_at":"2013-12-09T21:27:38Z","updated_at":"2015-08-07T18:25:07Z","pushed_at":"2015-08-16T12:28:52Z","git_url":"git://github.com/lazd/gulp-csslint.git","ssh_url":"git@github.com:lazd/gulp-csslint.git","clone_url":"https://github.com/lazd/gulp-csslint.git","svn_url":"https://github.com/lazd/gulp-csslint","homepage":"","size":607,"stargazers_count":50,"watchers_count":50,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":7,"forks":8,"open_issues":7,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21"},"html":{"href":"https://github.com/lazd/gulp-csslint/pull/21"},"issue":{"href":"https://api.github.com/repos/lazd/gulp-csslint/issues/21"},"comments":{"href":"https://api.github.com/repos/lazd/gulp-csslint/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lazd/gulp-csslint/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/lazd/gulp-csslint/statuses/7d602f7d1d308611bf2017d5dec2eeec158df126"}}}}