mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
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:
parent
51e1a785f8
commit
99cf39fe96
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user