lintPath(path) {
    path = path.replace(/\/$/, '');
    return fs.statSync(path).isDirectory() ?
      this.lintDirectory(path) :
      this.lintFile(path);
  }
Lints a file or a directory.

@param {String} path