Avoid linting code that isnt owned by JSDoc. Avoid me having to fix errors in temporary folders I keep inside the main project folder.

This commit is contained in:
Michael Mathews 2012-07-08 01:09:22 +01:00
parent 51e1a785f8
commit 99cf39fe96

View File

@ -41,8 +41,8 @@ describe("jshint-clean", function() {
// check all .js files unless they're tests; rhino shim files that probably can't be
// delinted; or third-party modules
source = {
includePattern: ".+\\.js$",
excludePattern: ".+[\\\\|/]test[\\\\|/].+|.+rhino-shim\\.js|.+[\\\\|/]Jake[\\\\|/].+|.+[\\\\|/]node_modules[\\\\|/].+"
includePattern: '.+[\\|/]rhino_modules[\\|/].+\.js$|.+[\\|/]plugins[\\|/]\w+\.js$',
excludePattern: '.+[\\|/]test[\\|/].+'
};
filter = new (require('jsdoc/src/filter').Filter)(source);