diff --git a/.arcconfig b/.arcconfig index fa1f72054f..c81050db3d 100644 --- a/.arcconfig +++ b/.arcconfig @@ -7,5 +7,6 @@ "remote_hooks_installed" : true, "phutil_libraries" : { "phabricator" : "src/" - } + }, + "lint.xhpast.naminghook" : "PhabricatorSymbolNameLinter" } diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index f4f1153e38..3c94cef8d3 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -614,6 +614,7 @@ phutil_register_library_map(array( 'PhabricatorSlowvotePollController' => 'applications/slowvote/controller/poll', 'PhabricatorStandardPageView' => 'view/page/standard', 'PhabricatorStatusController' => 'applications/status/base', + 'PhabricatorSymbolNameLinter' => 'infrastructure/lint/hook/xhpastsymbolname', 'PhabricatorSyntaxHighlighter' => 'applications/markup/syntax', 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/taskmaster', 'PhabricatorTestCase' => 'infrastructure/testing/testcase', @@ -1195,6 +1196,7 @@ phutil_register_library_map(array( 'PhabricatorSlowvotePollController' => 'PhabricatorSlowvoteController', 'PhabricatorStandardPageView' => 'AphrontPageView', 'PhabricatorStatusController' => 'PhabricatorController', + 'PhabricatorSymbolNameLinter' => 'ArcanistXHPASTLintNamingHook', 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 'PhabricatorTestCase' => 'ArcanistPhutilTestCase', 'PhabricatorTimelineCursor' => 'PhabricatorTimelineDAO', diff --git a/src/infrastructure/lint/hook/xhpastsymbolname/PhabricatorSymbolNameLinter.php b/src/infrastructure/lint/hook/xhpastsymbolname/PhabricatorSymbolNameLinter.php new file mode 100644 index 0000000000..b55f248d75 --- /dev/null +++ b/src/infrastructure/lint/hook/xhpastsymbolname/PhabricatorSymbolNameLinter.php @@ -0,0 +1,39 @@ +