From 99cf39fe96a0abbd56d2fa8bd4d7736f8aebd37d Mon Sep 17 00:00:00 2001 From: Michael Mathews Date: Sun, 8 Jul 2012 01:09:22 +0100 Subject: [PATCH] Avoid linting code that isnt owned by JSDoc. Avoid me having to fix errors in temporary folders I keep inside the main project folder. --- test/specs/jshint/jshint-clean.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/specs/jshint/jshint-clean.js b/test/specs/jshint/jshint-clean.js index 436aaab3..361d4015 100644 --- a/test/specs/jshint/jshint-clean.js +++ b/test/specs/jshint/jshint-clean.js @@ -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);