* Lints all files in a directory. * * @param {String} path * @returns {Promise}
(path)
| 80 | * @returns {Promise} |
| 81 | */ |
| 82 | lintDirectory(path) { |
| 83 | let files = this._getAcceptableFilesFromDirectory(path); |
| 84 | let promises = files.map((file) => this.lintFile(file)); |
| 85 | return Promise.all(promises); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Lints a single file. |
no test coverage detected