Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/ArcanistLintEngine.php
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | abstract class ArcanistLintEngine extends Phobject { | ||||
| private $cacheVersion; | private $cacheVersion; | ||||
| private $repositoryVersion; | private $repositoryVersion; | ||||
| private $results = array(); | private $results = array(); | ||||
| private $stopped = array(); | private $stopped = array(); | ||||
| private $minimumSeverity = ArcanistLintSeverity::SEVERITY_DISABLED; | private $minimumSeverity = ArcanistLintSeverity::SEVERITY_DISABLED; | ||||
| private $changedLines = array(); | private $changedLines = array(); | ||||
| private $enableAsyncLint = false; | |||||
| private $configurationManager; | private $configurationManager; | ||||
| private $linterResources = array(); | private $linterResources = array(); | ||||
| public function __construct() {} | public function __construct() {} | ||||
| final public function setConfigurationManager( | final public function setConfigurationManager( | ||||
| ArcanistConfigurationManager $configuration_manager) { | ArcanistConfigurationManager $configuration_manager) { | ||||
| Show All 37 Lines | final public function getPathChangedLines($path) { | ||||
| return idx($this->changedLines, $path); | return idx($this->changedLines, $path); | ||||
| } | } | ||||
| final public function setFileData($data) { | final public function setFileData($data) { | ||||
| $this->fileData = $data + $this->fileData; | $this->fileData = $data + $this->fileData; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function setEnableAsyncLint($enable_async_lint) { | |||||
| $this->enableAsyncLint = $enable_async_lint; | |||||
| return $this; | |||||
| } | |||||
| final public function getEnableAsyncLint() { | |||||
| return $this->enableAsyncLint; | |||||
| } | |||||
| final public function loadData($path) { | final public function loadData($path) { | ||||
| if (!isset($this->fileData[$path])) { | if (!isset($this->fileData[$path])) { | ||||
| $disk_path = $this->getFilePathOnDisk($path); | $disk_path = $this->getFilePathOnDisk($path); | ||||
| $this->fileData[$path] = Filesystem::readFile($disk_path); | $this->fileData[$path] = Filesystem::readFile($disk_path); | ||||
| } | } | ||||
| return $this->fileData[$path]; | return $this->fileData[$path]; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines | |||||