* Checks if path is not present in `exclude` list. * * @param {String} path * @returns {Boolean} False if specified path is present in `exclude` list. * Otherwise returns true.
(path)
| 423 | * Otherwise returns true. |
| 424 | */ |
| 425 | _shouldProcess(path) { |
| 426 | path = path.replace(/\/$/, ''); |
| 427 | if (!fs.existsSync(path)) { |
| 428 | console.warn('Path ' + path + ' was not found.'); |
| 429 | return false; |
| 430 | } |
| 431 | |
| 432 | path = path.replace(/^\.\//, ''); |
| 433 | return this.exclude.every(function(e) { |
| 434 | return !e.match(path); |
| 435 | }); |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Checks if specified path is not present in `exclude` list and it has one of |
no outgoing calls
no test coverage detected