MCPcopy Index your code
hub / github.com/csscomb/csscomb.js / _shouldProcess

Method _shouldProcess

src/core.js:425–436  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 3

_shouldProcessFileMethod · 0.95
processDirectoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected