jshint warnings and errors are not affecting grunt error counters
hadason opened this issue · 1 comments
hadason commented
It seems that when using this reporter, the warnings and errors in jshint are not affecting the grunt error counters (grunt.fail.errorcount, grunt.fail.warncount)
it is possible to check it by adding the following code to the gruntfile.js:
grunt.registerTask('checkfailure', function() {
grunt.log.write(grunt.fail.errorcount);
}
add that task after the jshint task is executing (make sure to use --force so that the task would run even though the jshint task fails)
when removing the reporter the errorcount changes according to jshint.
sindresorhus commented
That's more likely a bug with grunt-contrib-jshint when using the reporter
option.
Open a ticket over there: https://github.com/gruntjs/grunt-contrib-jshint