{"action":"created","issue":{"url":"https://api.github.com/repos/lazd/gulp-csslint/issues/47","repository_url":"https://api.github.com/repos/lazd/gulp-csslint","labels_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/47/comments","events_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/47/events","html_url":"https://github.com/lazd/gulp-csslint/issues/47","id":153347576,"number":47,"title":"Error writing report to XML file","user":{"login":"StephenBugden","id":3857101,"avatar_url":"https://avatars.githubusercontent.com/u/3857101?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBugden","html_url":"https://github.com/StephenBugden","followers_url":"https://api.github.com/users/StephenBugden/followers","following_url":"https://api.github.com/users/StephenBugden/following{/other_user}","gists_url":"https://api.github.com/users/StephenBugden/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBugden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBugden/subscriptions","organizations_url":"https://api.github.com/users/StephenBugden/orgs","repos_url":"https://api.github.com/users/StephenBugden/repos","events_url":"https://api.github.com/users/StephenBugden/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBugden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-05-05T23:20:46Z","updated_at":"2016-05-10T18:39:54Z","closed_at":null,"body":"Hello,\r\n\r\nI posted a question a couple of days ago, but can see that it's now closed:\r\nhttps://github.com/lazd/gulp-csslint/issues/46\r\n\r\nI changed my code according to the suggestion there, it now reads:\r\nHere's the code:\r\n```js\r\nvar gulp = require('gulp');\r\n\r\nvar CSS_PATH = 'public/css/*/.css';\r\nvar DIST_PATH = 'public/dist';\r\n\r\ngulp.task('lintcss', function(cb) {\r\n  var fs = require('fs');\r\n  var output = '';\r\n \r\ngulp.src(CSS_PATH)\r\n.pipe(csslint())\r\n    .pipe(csslint.reporter('junit-xml', {logger: function(str) { output += str; }}));\r\n \r\n  fs.writeFile(DIST_PATH + 'junit.xml', output, cb);\r\n});\r\n```\r\n\r\nBut i now get an error 'Error: Invalid reporter'\r\n\r\nI took the code original from:\r\nhttps://www.npmjs.com/package/gulp-csslint\r\nBut obviously something still isn't right.\r\n\r\nAll I really want to do is to output the report as xml to a file.\r\n\r\nBest Regards,\r\n\r\nSteve"},"comment":{"url":"https://api.github.com/repos/lazd/gulp-csslint/issues/comments/218250792","html_url":"https://github.com/lazd/gulp-csslint/issues/47#issuecomment-218250792","issue_url":"https://api.github.com/repos/lazd/gulp-csslint/issues/47","id":218250792,"user":{"login":"Ryuno-Ki","id":3097194,"avatar_url":"https://avatars.githubusercontent.com/u/3097194?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryuno-Ki","html_url":"https://github.com/Ryuno-Ki","followers_url":"https://api.github.com/users/Ryuno-Ki/followers","following_url":"https://api.github.com/users/Ryuno-Ki/following{/other_user}","gists_url":"https://api.github.com/users/Ryuno-Ki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryuno-Ki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryuno-Ki/subscriptions","organizations_url":"https://api.github.com/users/Ryuno-Ki/orgs","repos_url":"https://api.github.com/users/Ryuno-Ki/repos","events_url":"https://api.github.com/users/Ryuno-Ki/events{/privacy}","received_events_url":"https://api.github.com/users/Ryuno-Ki/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T18:39:54Z","updated_at":"2016-05-10T18:39:54Z","body":"@StephenBugden You're missing that file.\r\n\r\nLook at [bootstrap's .csslintrc](https://github.com/twbs/bootstrap/blob/795d2208b882e194e6059a1639e056e020d64072/less/.csslintrc). I renamed it to `.csslintrc.json` to trigger syntax highlighting (and it needs to be valid JSON).\r\n\r\nYou can omit that line if you go for `.csslintrc`."}}