4
* Lint engine for use in constructing test cases. See
5
* @{class:ArcanistLinterTestCase}.
7
final class UnitTestableArcanistLintEngine extends ArcanistLintEngine {
9
protected $linters = array();
11
public function addLinter($linter) {
12
$this->linters[] = $linter;
16
public function addFileData($path, $data) {
17
$this->fileData[$path] = $data;
21
public function pathExists($path) {
22
if (idx($this->fileData, $path)) {
25
return parent::pathExists($path);
28
protected function buildLinters() {
29
return $this->linters;