reporter does not work with grunt-contrib-jshint
TheModFather opened this issue · comments
Specifying the reporter and reporterOutput does not work as intended when using grunt-contrib-jshint. Example config below:
jshint: {
framework: ['src/public/media/js/framework/**/*.js'],
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-junit-reporter'),
reporterOutput: "junit-output.xml"
}
}
Sorry about the delayed response, which version are you using?
We're using it currently with grunt-contrib-jshint 0.6.4
and the following setup:
jshint: {
all: [
'Gruntfile.js',
'../console/gui_p0/htdocs/js/v3/**/*.js',
'./grunt/**/*.js',
'!./grunt/autotests/**/*.test.js',
'../components/javascript/odesk/**/*.js',
'!../console/gui_p0/htdocs/js/v3/**/compiled*/**/*.js',
'!../console/gui_p0/htdocs/js/v3/*/jstest/**',
'!../console/gui_p0/htdocs/js/v3/**/*.build.js'
],
options: {
reporter: require('jshint-junit-reporter'),
reporterOutput: "junit-output.xml",
force: true,
curly: false,
/* more options bla bla bla */
}
}
Closing as hopefully dead. Please reopen if it's still a problem :(