JakubOnderka / PHP-Parallel-Lint

This tool check syntax of PHP files faster than serial check with fancier output.
Other
647 stars 62 forks source link

Fix "--exclude" argument to work correctly with relative paths #11

Closed elkangaroo closed 11 years ago

elkangaroo commented 11 years ago

You can now use relative directories in --exclude arguments, even if you call parallel-lint from outside the project directory.

Before: $ bin/parallel-lint --exclude vendor /some/other/path/ ... would not exclude "vendor" sub-directory in "/some/other/path/", because it would only check in current working directory (cwd).

After: $ bin/parallel-lint --exclude vendor /some/other/path/ ... now correctly excludes "/some/other/path/vendor/" directory

Excluding absolute paths still works too.

I also extended \RecursiveFilterIterator instead of implementing \RecursiveIterator, which already implements some of the needed methods.

JakubOnderka commented 11 years ago

Thanks!