Summary: This should be done for all external and configurable linters.
Test Plan: Linted file with lint problems, changed options, relinted.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4475
$versions = array($this->getCacheVersion());
foreach ($linters as $linter) {
+ $linter->setEngine($this);
$versions[] = get_class($linter).':'.$linter->getCacheVersion();
}
$this->cacheVersion = crc32(implode("\n", $versions));
$linter_name = get_class($linter);
}
try {
- $linter->setEngine($this);
if (!$linter->canRun()) {
continue;
}
}
public function getCacheVersion() {
- return '1.3.4';
+ list($stdout) = execx('%C --version', $this->getPEP8Path());
+ return $stdout.$this->getPEP8Options();
}
public function getPEP8Options() {