]> khamidou — GitHub mirrors - arcanist.git/commit
Improve example linter to not lint deleted paths
authorNick Harper <nharper@fb.com>
Wed, 23 May 2012 21:53:37 +0000 (14:53 -0700)
committerNick Harper <nharper@fb.com>
Wed, 23 May 2012 21:59:31 +0000 (14:59 -0700)
commit2c72779c7d3024e3c7b9a8ce454754f727a9ef14
tree8d25f7cbc110d509410e4418826180ab99712c7e
parent833ae9c152a01d916c7b8b174c8a0b6d3e682ee9
Improve example linter to not lint deleted paths

Summary:
It's easy to forget to do this when writing a new lint engine (like I recently
just did), so I added it to the example to improve documentation on how to write
a lint engine. This code is copied from PhutilLintEngine (as well as many
others).

Test Plan: php -l

Reviewers: jungejason, vrana, epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2553
src/lint/engine/example/ExampleLintEngine.php