public function setLinterConfigurationValue($key, $value) { switch ($key) { case 'xhpast.deprecated.functions': $this->deprecatedFunctions = $value; return; default: return parent::getLinterConfigurationOptions(); } }
public function getLinterConfigurationOptions() { return parent::getLinterConfigurationOptions() + array('xhpast.naminghook' => array('type' => 'optional string', 'help' => pht('Name of a concrete subclass of `%s` which enforces more ' . 'granular naming convention rules for symbols.', 'ArcanistXHPASTLintNamingHook'))); }
public function getLinterConfigurationOptions() { return parent::getLinterConfigurationOptions() + array('xhpast.printf-functions' => array('type' => 'optional map<string, int>', 'help' => pht('`%s`-style functions which take a format string and list of values ' . 'as arguments. The value for the mapping is the start index of the ' . 'function parameters (the index of the format string parameter).', 'printf()'))); }
public function getLinterConfigurationOptions() { return parent::getLinterConfigurationOptions() + array('xhpast.php-version' => array('type' => 'optional string', 'help' => pht('PHP version to target.')), 'xhpast.php-version.windows' => array('type' => 'optional string', 'help' => pht('PHP version to target on Windows.'))); }
public function getLinterConfigurationOptions() { return parent::getLinterConfigurationOptions() + array('xhpast.switchhook' => array('type' => 'optional string', 'help' => pht('Name of a concrete subclass of `%s` which tunes the ' . 'analysis of `%s` statements for this linter.', 'ArcanistXHPASTLintSwitchHook', 'switch'))); }
public function getLinterConfigurationOptions() { $options = array('xhpast.dynamic-string.classes' => array('type' => 'optional map<string, string>', 'help' => pht('Classes which should should not be used because they represent the ' . 'unsafe usage of dynamic strings.')), 'xhpast.dynamic-string.functions' => array('type' => 'optional map<string, string>', 'help' => pht('Functions which should should not be used because they represent ' . 'the unsafe usage of dynamic strings.'))); return $options + parent::getLinterConfigurationOptions(); }