public function setLinterConfigurationValue($key, $value)
 {
     switch ($key) {
         case 'xhpast.deprecated.functions':
             $this->deprecatedFunctions = $value;
             return;
         default:
             return parent::getLinterConfigurationOptions();
     }
 }
 public function setLinterConfigurationValue($key, $value)
 {
     switch ($key) {
         case 'xhpast.naminghook':
             $this->naminghook = $value;
             return;
         default:
             return parent::setLinterConfigurationValue($key, $value);
     }
 }
コード例 #3
0
 public function setLinterConfigurationValue($key, $value)
 {
     switch ($key) {
         case 'xhpast.printf-functions':
             $this->printfFunctions = $value;
             return;
         default:
             return parent::setLinterConfigurationValue($key, $value);
     }
 }
コード例 #4
0
 public function setLinterConfigurationValue($key, $value)
 {
     switch ($key) {
         case 'xhpast.php-version':
             $this->version = $value;
             return;
         case 'xhpast.php-version.windows':
             $this->windowsVersion = $value;
             return;
         default:
             return parent::setLinterConfigurationValue($key, $value);
     }
 }
コード例 #5
0
 public function setLinterConfigurationValue($key, $value)
 {
     switch ($key) {
         case 'xhpast.dynamic-string.classes':
             $this->dynamicStringClasses = $value;
             return;
         case 'xhpast.dynamic-string.functions':
             $this->dynamicStringFunctions = $value;
             return;
         default:
             parent::setLinterConfigurationValue($key, $value);
             return;
     }
 }
コード例 #6
0
 public function testLoadAllRules()
 {
     ArcanistXHPASTLinterRule::loadAllRules();
     $this->assertTrue(true);
 }
コード例 #7
0
 public function __construct()
 {
     $this->rules = ArcanistXHPASTLinterRule::loadAllRules();
 }