* 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)
| 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 |
no test coverage detected