Differential D19561 Diff 46771 src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistUnsafeDynamicStringXHPASTLinterRule.php
Show All 15 Lines | public function getLintSeverity() { | ||||
return ArcanistLintSeverity::SEVERITY_ERROR; | return ArcanistLintSeverity::SEVERITY_ERROR; | ||||
} | } | ||||
public function getLinterConfigurationOptions() { | public function getLinterConfigurationOptions() { | ||||
$options = array( | $options = array( | ||||
'xhpast.dynamic-string.classes' => array( | 'xhpast.dynamic-string.classes' => array( | ||||
'type' => 'optional map<string, string>', | 'type' => 'optional map<string, string>', | ||||
'help' => pht( | 'help' => pht( | ||||
'Classes which should should not be used because they represent the '. | 'Classes which should not be used because they represent the '. | ||||
'unsafe usage of dynamic strings.'), | 'unsafe usage of dynamic strings.'), | ||||
), | ), | ||||
'xhpast.dynamic-string.functions' => array( | 'xhpast.dynamic-string.functions' => array( | ||||
'type' => 'optional map<string, string>', | 'type' => 'optional map<string, string>', | ||||
'help' => pht( | 'help' => pht( | ||||
'Functions which should should not be used because they represent '. | 'Functions which should not be used because they represent the '. | ||||
'the unsafe usage of dynamic strings.'), | 'unsafe usage of dynamic strings.'), | ||||
), | ), | ||||
); | ); | ||||
return $options + parent::getLinterConfigurationOptions(); | return $options + parent::getLinterConfigurationOptions(); | ||||
} | } | ||||
public function setLinterConfigurationValue($key, $value) { | public function setLinterConfigurationValue($key, $value) { | ||||
switch ($key) { | switch ($key) { | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |