]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor tweaks for XHPAST config
authorepriestley <git@epriestley.com>
Mon, 12 May 2014 12:06:14 +0000 (05:06 -0700)
committerepriestley <git@epriestley.com>
Mon, 12 May 2014 12:06:14 +0000 (05:06 -0700)
Summary: Ref T2039. The type specs are right in theory but not quite correct in practice, since we pass strings in rather than objects.

Test Plan: While tweaking `phabricator/`, adjusted these to get desirable results.

Reviewers: btrahan, joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Maniphest Tasks: T2039

Differential Revision: https://secure.phabricator.com/D9071

src/lint/linter/ArcanistXHPASTLinter.php

index 51fd79db0799b872b3812eebf410dfe3c1368609..94850ab6328084733981e5eab71f01ecae88e46b 100644 (file)
@@ -147,12 +147,16 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
   public function getLinterConfigurationOptions() {
     return parent::getLinterConfigurationOptions() + array(
       'xhpast.naminghook' => array(
-        'type' => 'optional ArcanistXHPASTLintNamingHook',
-        'help' => pht(''),
+        'type' => 'optional string',
+        'help' => pht(
+          'Name of a concrete subclass of ArcanistXHPASTLintNamingHook which '.
+          'enforces more granular naming convention rules for symbols.'),
       ),
       'xhpast.switchhook' => array(
-        'type' => 'optional ArcanistXHPASTLintSwitchHook',
-        'help' => pht(''),
+        'type' => 'optional string',
+        'help' => pht(
+          'Name of a concrete subclass of ArcanistXHPASTLintSwitchHook which '.
+          'tunes the analysis of switch() statements for this linter.'),
       ),
     );
   }