Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | /* -( Executing Linters )-------------------------------------------------- */ | ||||
public function didLintPaths(array $paths) { | public function didLintPaths(array $paths) { | ||||
return; | return; | ||||
} | } | ||||
public function getLinterPriority() { | public function getLinterPriority() { | ||||
return 1.0; | return 1.0; | ||||
} | } | ||||
/** | |||||
* TODO: This should be `final`. | |||||
*/ | |||||
public function setCustomSeverityMap(array $map) { | public function setCustomSeverityMap(array $map) { | ||||
$this->customSeverityMap = $map; | $this->customSeverityMap = $map; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function addCustomSeverityMap(array $map) { | public function addCustomSeverityMap(array $map) { | ||||
$this->customSeverityMap = $this->customSeverityMap + $map; | $this->customSeverityMap = $this->customSeverityMap + $map; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function setCustomSeverityRules(array $rules) { | public function setCustomSeverityRules(array $rules) { | ||||
$this->customSeverityRules = $rules; | $this->customSeverityRules = $rules; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function getProjectRoot() { | final public function getProjectRoot() { | ||||
$engine = $this->getEngine(); | $engine = $this->getEngine(); | ||||
if (!$engine) { | if (!$engine) { | ||||
throw new Exception( | throw new Exception( | ||||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |