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

Method lintFile

src/core.js:94–99  ·  view source on GitHub ↗

* Lints a single file. * * @param {String} path * @returns {Promise}

(path)

Source from the content-addressed store, hash-verified

92 * @returns {Promise}
93 */
94 lintFile(path) {
95 let syntax = this._extractSyntax(path);
96 return this._readFile(path).then((string) => {
97 return this.lintString(string, {syntax: syntax, filename: path});
98 });
99 }
100
101 /**
102 * Lints a file or a directory.

Callers 2

lintDirectoryMethod · 0.95
lintPathMethod · 0.95

Calls 3

_extractSyntaxMethod · 0.95
_readFileMethod · 0.95
lintStringMethod · 0.95

Tested by

no test coverage detected