You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file.csslint.opt= {}; // The options you passed to CSSLint
67
67
```
68
68
69
-
## Custom Reporters
69
+
## Using reporters
70
+
71
+
Several reporters come built-in to css-lint. To use one of these reporters, pass the name to `csslint.reporter`.
72
+
73
+
For a list of all reporters supported by `csslint`, see the [csslint wiki](https://github.com/CSSLint/csslint/wiki/Command-line-interface#--format).
74
+
75
+
```js
76
+
gulp.task('lint', function() {
77
+
gulp.files('lib/*.css')
78
+
.pipe(csslint())
79
+
.pipe(csslint.reporter('junit-xml'));
80
+
```
81
+
82
+
### Custom Reporters
70
83
71
84
Custom reporter functions can be passed as `csslint.reporter(reporterFunc)`. The reporter function will be called for each linted file and passed the file object as described above.
0 commit comments