]> khamidou — GitHub mirrors - arcanist.git/commit
Allow the `ArcanistPhutilLibraryLinter` to recover from PHP syntax errors
authorJoshua Spence <josh@joshuaspence.com>
Thu, 10 Jul 2014 01:48:45 +0000 (11:48 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 10 Jul 2014 01:48:45 +0000 (11:48 +1000)
commit3de9e4aaea616f21f38421a0a9d09ca76f883438
treec21039d45f66c89000326dc9208b41a026f283c4
parentdfdaed0b27fbe7c8561f15b324fe42697d60be03
Allow the `ArcanistPhutilLibraryLinter` to recover from PHP syntax errors

Summary: Fixes T5577. If the `ArcanistPhutilLibraryLinter` lints a PHP file that contains a syntax error, it will die horribly. Instead, force it to continue as if nothing was wrong.

Test Plan: Introduced a PHP syntax error. Ran `arc lint` and made sure the output looked reasonable.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5577

Differential Revision: https://secure.phabricator.com/D9865
src/lint/linter/ArcanistPhutilLibraryLinter.php