Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | /* -( Executing Linters )-------------------------------------------------- */ | ||||
* | * | ||||
* If you do not implement this method, the linter will not be selectable | * If you do not implement this method, the linter will not be selectable | ||||
* through `.arclint` files. | * through `.arclint` files. | ||||
*/ | */ | ||||
public function getLinterConfigurationName() { | public function getLinterConfigurationName() { | ||||
return null; | return null; | ||||
} | } | ||||
public function willSetLinterConfiguration(array $config) { | |||||
joshuaspence: Alternative method names:
- `willSetLinterConfigurationOptions`… | |||||
return; | |||||
} | |||||
public function getLinterConfigurationOptions() { | public function getLinterConfigurationOptions() { | ||||
if (!$this->canCustomizeLintSeverities()) { | if (!$this->canCustomizeLintSeverities()) { | ||||
return array(); | return array(); | ||||
} | } | ||||
return array( | return array( | ||||
'severity' => array( | 'severity' => array( | ||||
'type' => 'optional map<string|int, string>', | 'type' => 'optional map<string|int, string>', | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |
Alternative method names: