overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`exclude` option seems to be relative only

jasonmccreary opened this issue · comments

Given the I have the directory structure:

  • src
  • tests
    • fixtures

I wanted to exclude the test/fixtures folder, so I set the option exclude=tests/fixtures. However, these files were still included.

After some toying around, I passed exclude=fixtures and there were properly excluded.

However, given I was running the phplint from the project root, I would expect the former to work.

@jasonmccreary Sorry for not replying to you until now, the exclude is relative to target path(default: .), please show me the full command to me, I can't reproduce the problem. Thanks.

I see. Makes sense I suppose. Thanks.