Reputation: 29720
I'm getting the following from the console...
"C:\Program Files (x86)\JetBrains\WebStorm 11.0.3\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\myProj\node_modules\grunt-cli\bin\grunt --gruntfile C:\Projects\dcloud-v2-ui\Gruntfile.js test
Running "jshint:all" (jshint) task
16 | })
^ Missing semicolon.
76 | })
^ Missing semicolon.
113 | })
^ Missing semicolon.
>> 3 errors in 407 files
Warning: Task "jshint:all" failed. Use --force to continue.
Aborted due to warnings.
Process finished with exit code 3
Why is is not showing me the file with the missing semi colons? I notice is is finishing on a 3. Is that related to an error in Grunt or just telling me the 'hinting' failed?
Upvotes: 4
Views: 758
Reputation: 641
The bug in the chosen answer hasn't been fixed yet. The workaround suggested in the issue thread is to use jshint-stylish - an external reporter for jshint
The setup for my project is as easy as running npm install --save-dev jshint-stylish
and adding the following to options
section of jshint
:
jshint: {
options: {
reporter: require('jshint-stylish')
...
},
...
Upvotes: 4
Reputation: 2652
It looks like this is a bug in grunt-contrib-jshint. It previously worked as you would expect, but this is a regression in recent versions. Unfortunately the root of the issue doesn't seem to have been identified, and there's surprisingly little activity on the issue.
Upvotes: 5