]> khamidou — GitHub mirrors - arcanist.git/commit
Separate Phutil specific lint rules from XHPAST
authorvrana <jakubv@fb.com>
Tue, 29 Jan 2013 06:03:03 +0000 (22:03 -0800)
committervrana <jakubv@fb.com>
Tue, 29 Jan 2013 18:54:40 +0000 (10:54 -0800)
commit5aa3bc6ec077d8cc914a7269874ce74ad7cae898
tree67d0bb86b455f3e2f0d2bc2e45acdb6b44b39c79
parent0586b12d2f06cb59bd55c64f8a0931f86375b14a
Separate Phutil specific lint rules from XHPAST

Summary: Also provides an example how to build custom linter using XHPAST.

Test Plan: Added debug output to `willLintPaths()`, verified that each path is parsed only once.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4718
src/__phutil_library_map__.php
src/lint/engine/PhutilLintEngine.php
src/lint/linter/ArcanistBaseXHPASTLinter.php [new file with mode: 0644]
src/lint/linter/ArcanistPhutilXHPASTLinter.php [new file with mode: 0644]
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/phlxhp/array-combine.lint-test [moved from src/lint/linter/__tests__/xhpast/array-combine.lint-test with 83% similarity]
src/lint/linter/__tests__/phlxhp/pht.lint-test [moved from src/lint/linter/__tests__/xhpast/pht.lint-test with 71% similarity]