* Lints a single file. * * @param {String} path * @returns {Promise}
(path)
| 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. |
no test coverage detected