Skip to content

Commit

Permalink
Merge pull request #30 from zobalogh/add-jshint-coverage-filter
Browse files Browse the repository at this point in the history
Filtering out coverage tooling from jshint
  • Loading branch information
knolleary committed Oct 8, 2014
2 parents a2d1007 + ee76ba2 commit 16a52f4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,17 @@ module.exports = function(grunt) {
"loopfunc": true, // allow functions to be defined in loops
"sub": true // don't warn that foo['bar'] should be written as foo.bar
},
all: [
'*/*.js'
],
all: {
src: ['*/*.js'],
filter: function(filepath) { // on some developer machines the test coverage HTML report utilities cause further failures
if(filepath.indexOf("coverage/prettify.js") === -1) {
return true;
} else {
console.log("Filtered out " + filepath + " from the jshint checks");
return false;
}
}
},
},
inlinelint: {
html: ['*/*.html']
Expand Down

0 comments on commit 16a52f4

Please sign in to comment.