]> khamidou — GitHub mirrors - arcanist.git/commit
Don't lint file content of directories
authorvrana <jakubv@fb.com>
Thu, 18 Oct 2012 21:17:29 +0000 (14:17 -0700)
committervrana <jakubv@fb.com>
Fri, 19 Oct 2012 18:38:44 +0000 (11:38 -0700)
commit4585ab7363314ac70d277d9a6318811627a1e84d
treed90f6f87c6c884d0b465d86ae9b6127e1a96211b
parentb52ee2fdeecd087f3bee75376a01f79e26b53a48
Don't lint file content of directories

Summary: This also changes how we treat `@generated` and `@nolint` - after this diff, we will still lint their path.

Test Plan:
Created directory `a.php` and symlink `b.php` pointing to directory.
`arc lint` previously printed:

> Requested path `/data/users/jakubv/devtools/arcanist/_.php' is not a file.

Now it prints:

> No lint warnings.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3737
src/lint/engine/PhutilLintEngine.php