* Lints a file or a directory. * * @param {String} path
(path)
| 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. |
nothing calls this directly
no test coverage detected