Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php
Show All 14 Lines | public function getLintSeverity() { | ||||
return ArcanistLintSeverity::SEVERITY_WARNING; | return ArcanistLintSeverity::SEVERITY_WARNING; | ||||
} | } | ||||
public function getLinterConfigurationOptions() { | public function getLinterConfigurationOptions() { | ||||
return parent::getLinterConfigurationOptions() + array( | return parent::getLinterConfigurationOptions() + array( | ||||
'xhpast.deprecated.functions' => array( | 'xhpast.deprecated.functions' => array( | ||||
'type' => 'optional map<string, string>', | 'type' => 'optional map<string, string>', | ||||
'help' => pht( | 'help' => pht( | ||||
'Functions which should should be considered deprecated.'), | 'Functions which should be considered deprecated.'), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function setLinterConfigurationValue($key, $value) { | public function setLinterConfigurationValue($key, $value) { | ||||
switch ($key) { | switch ($key) { | ||||
case 'xhpast.deprecated.functions': | case 'xhpast.deprecated.functions': | ||||
$this->deprecatedFunctions = $value; | $this->deprecatedFunctions = $value; | ||||
Show All 26 Lines |