spalger / gulp-jshint

JSHint plugin for gulp
MIT License
419 stars 65 forks source link

Error when using verbose #62

Closed qraynaud closed 10 years ago

qraynaud commented 10 years ago

I'm trying to pass the jshint verbose option to get the warning numbers on my reporter. This seems to be passed properly to jshint because it is properly activated but it also creates an error on each files.

Here is my config:

var jsHintTask = lazypipe()
  .pipe(jshint, {lookup: 'client/js/.jshintrc', verbose: true})
  .pipe(jshint.reporter, 'jshint-stylish')
;

Here is an example output:

/.../app.js
  line 0  col 0  Bad option: 'verbose'.  (E001)

✖ 1 problem

/.../routes.js
  line 0  col 0  Bad option: 'verbose'.  (E001)

✖ 1 problem
qraynaud commented 10 years ago

Ok, my bad. I found out you could pass options to reporters and get verbose there:

var jsHintTask = lazypipe()
  .pipe(jshint, {lookup: 'client/js/.jshintrc'})
  .pipe(jshint.reporter, 'jshint-stylish', {verbose: true})
;

I'm closing this since it is invalid and opening a separate issue to add doc...