]> khamidou — GitHub mirrors - arcanist.git/commit
Adding php -l linter
authorMichael Peters <michael@michaeldpeters.com>
Thu, 28 Aug 2014 00:29:31 +0000 (17:29 -0700)
committerepriestley <git@epriestley.com>
Thu, 28 Aug 2014 00:29:31 +0000 (17:29 -0700)
commit9fc8a2f61b197ca2de8297ece559513683001922
treef9b32403913171fb9b99b63fc7515bef3caf66d1
parente4bbcaf8f7bf5aab365a63ff38d128a85b84069d
Adding php -l linter

Summary: Adds a linter that checks php files for syntax errors using php -l

Test Plan:
Add a section to your .arclint file similar to:
```
"php": {
  "type": "php",
  "include": "(\\.php$)"
}
```

Then run arc lint on a php file with a syntax error.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, jacobwalker0814, Korvin

Differential Revision: https://secure.phabricator.com/D10370
src/__phutil_library_map__.php
src/lint/linter/ArcanistPhpLinter.php [new file with mode: 0644]
src/lint/linter/__tests__/ArcanistPhpLinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/php/fatal.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/php/no-errors.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/php/syntax.lint-test [new file with mode: 0644]