Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding directories does not work. #60

Open
leonhelmus opened this issue May 12, 2021 · 1 comment
Open

Excluding directories does not work. #60

leonhelmus opened this issue May 12, 2021 · 1 comment

Comments

@leonhelmus
Copy link

When using the exclude it seems it does not read the directories when using this code:

$content = stream_get_contents(STDIN);

Because of that it doesn't exclude the directories when using phplint --exclude.

It never reaches this part of the code:

} else if (is_dir($path)) {

@realtebo
Copy link

realtebo commented Jul 13, 2023

I noticed that the path must include the path of parsed folder.

For example, I'm linting ../other-project

I must use --exclude ../other-project/vendor and not simply --exclude vendor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants