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

Method lintPath

src/core.js:106–111  ·  view source on GitHub ↗

* Lints a file or a directory. * * @param {String} path

(path)

Source from the content-addressed store, hash-verified

104 * @param {String} path
105 */
106 lintPath(path) {
107 path = path.replace(/\/$/, '');
108 return fs.statSync(path).isDirectory() ?
109 this.lintDirectory(path) :
110 this.lintFile(path);
111 }
112
113 /**
114 * Lints a string.

Callers

nothing calls this directly

Calls 2

lintDirectoryMethod · 0.95
lintFileMethod · 0.95

Tested by

no test coverage detected