]> khamidou — GitHub mirrors - arcanist.git/commit
Raise a lint error when code uses a PHP 5.3 feature in Phabricator
authorepriestley <git@epriestley.com>
Fri, 9 Mar 2012 21:51:02 +0000 (13:51 -0800)
committerepriestley <git@epriestley.com>
Fri, 9 Mar 2012 21:51:02 +0000 (13:51 -0800)
commitaecb8064a1668785b97d98ae9dbc9becc939bce4
treea3ca966e4cbdfe948e77acc407329a67bfecfdab
parent8f76800efc0e4eba65e47e8f17adc728408f717a
Raise a lint error when code uses a PHP 5.3 feature in Phabricator

Summary:
  - Add a lint check for PHP 5.3 features (namespaces, anonymous functions).
  - Add unit tests.
  - Disable it by default.
  - Enable it for us.

Test Plan: Ran unit tests.

Reviewers: btrahan, edward

Reviewed By: edward

CC: aran, epriestley
Maniphest Tasks: T962

Differential Revision: https://secure.phabricator.com/D1846
src/lint/engine/phutil/PhutilLintEngine.php
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test
src/lint/linter/xhpast/__tests__/data/php53.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/__tests__/data/undeclared-variables.lint-test