1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-10-24 17:48:50 +02:00
phorge-arcanist/src/lint/linter/ArcanistFutureLinter.php

32 lines
713 B
PHP
Raw Normal View History

<?php
abstract class ArcanistFutureLinter extends ArcanistLinter {
private $futures;
abstract protected function buildFutures(array $paths);
abstract protected function resolveFuture($path, Future $future);
public function willLintPaths(array $paths) {
$this->futures = $this->buildFutures($paths);
if (is_array($this->futures)) {
foreach ($this->futures as $future) {
$future->isReady();
}
$this->futures = Futures($this->futures);
}
}
public function lintPath($path) {
}
public function didRunLinters() {
if ($this->futures) {
foreach ($this->futures as $path => $future) {
$this->resolveFuture($path, $future);
}
}
}
}