]> khamidou — GitHub mirrors - arcanist.git/commit
Improve Arcanist symbol name linter
authorepriestley <git@epriestley.com>
Sat, 28 Jan 2012 19:17:45 +0000 (11:17 -0800)
committerepriestley <git@epriestley.com>
Sat, 28 Jan 2012 19:17:45 +0000 (11:17 -0800)
commit0781554a22c65a652a8110ea7752f93e3a92ab83
tree2aed692c9de08164bec939dbb7ff09e6ac71591b
parent975b541d2652b157029251071aeb976a7a237b59
Improve Arcanist symbol name linter

Summary:
  - Move name helper functions to ArcanistXHPASTLintNamingHook to make it easier
to write custom linters.
  - Add test coverage for name functions.
  - Add 'variable' and 'global' naming convention tests.
  - Expand test cases.
  - Improve lint message error when an unexpected message is raised during a
test.
  - Remove a defunct XHP lint message.

Test Plan:
  - Ran unit tests.
  - Ran "arc lint --lintall" on arcanist/.

Reviewers: btrahan, nh, jungejason

Reviewed By: btrahan

CC: johnduhart, aran, epriestley, arudolph
Differential Revision: https://secure.phabricator.com/D1506
src/__phutil_library_map__.php
src/lint/linter/base/test/ArcanistLinterTestCase.php
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__init__.php
src/lint/linter/xhpast/__tests__/data/duplicate-key-in-array.lint-test
src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test
src/lint/linter/xhpast/naminghook/ArcanistXHPASTLintNamingHook.php
src/lint/linter/xhpast/naminghook/__tests__/ArcanistXHPASTLintNamingHookTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/naminghook/__tests__/__init__.php [new file with mode: 0644]