MCPcopy
hub / github.com/csscomb/csscomb.js / _shouldProcessFile

Method _shouldProcessFile

src/core.js:446–455  ·  view source on GitHub ↗

* Checks if specified path is not present in `exclude` list and it has one of * acceptable syntaxes. * * @param {String} path * @returns {Boolean} False if the path either has unacceptable extension or * is present in `exclude` list. True if everything is ok.

(path)

Source from the content-addressed store, hash-verified

444 * is present in `exclude` list. True if everything is ok.
445 */
446 _shouldProcessFile(path) {
447 // Get file's extension:
448 var syntax = this._extractSyntax(path);
449
450 // Check if syntax is supported. If not, ignore the file:
451 if (!this.supportedSyntaxes.has(syntax))
452 return false;
453
454 return this._shouldProcess(path);
455 }
456
457 /**
458 * Extract syntax by file path

Callers 3

processFileMethod · 0.95
_readFileMethod · 0.95

Calls 2

_extractSyntaxMethod · 0.95
_shouldProcessMethod · 0.95

Tested by

no test coverage detected