]> khamidou — GitHub mirrors - arcanist.git/commit
Allow XHPAST lint name rules to be overridden through configuration
authorepriestley <git@epriestley.com>
Tue, 30 Aug 2011 20:07:01 +0000 (13:07 -0700)
committerepriestley <git@epriestley.com>
Wed, 31 Aug 2011 18:54:24 +0000 (11:54 -0700)
commit0c11b5c70c60c9cdd7ad031d33c50420279b3679
treebecce44e3f41a016ff4151d60bc45cc91b371825
parentaa138a80d29313c528728e2d22c73a3ac5eea1fe
Allow XHPAST lint name rules to be overridden through configuration

Summary:
See T326. Allow lint rules to be selectively overridden, e.g. for Conduit
methods.

Since FB has a long history of suggesting crazy patches for this stuff I think
we're safer just adding a hook class than trying to do some kind of regexp
magic.

Test Plan: Wrote a hook for Phabricator and linted some Conduit files without
issues. Ran unit tests.

Reviewers: nh, jungejason, tuomaspelkonen, aran

Reviewed By: nh

CC: aran, nh
Differential Revision: 874
src/__phutil_library_map__.php
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/naminghook/ArcanistXHPASTLintNamingHook.php [new file with mode: 0644]
src/lint/linter/xhpast/naminghook/__init__.php [new file with mode: 0644]