Skip to content

--exclude is being ignored #96

@roflo1

Description

@roflo1

I'm setting up a test environment for my upcoming project (in CodeIgniter4, if it's relevant) and stumbled upon this weird behavior. I execute the following (in my CI4 project folder):

php /path/to/run.php --config /path/to/my.cfg.xml --src app/Views/ --exclude app/Views/welcome_message.php

But the excluded file is still parsed:
image

If I exclude the relative path portion of the exclusion, it does skip the file (but I assume it would also exclude other unintended files):

php /path/to/run.php --config /path/to/my.cfg.xml --src app/Views/ --exclude welcome_message.php

After searching the reported issues, I thought it could have something to do with Issue 78, so I tried executing from the installation directory:

php run.php --config /path/to/my.cfg.xml --src /full/path/to/app/Views/ --exclude /full/path/to/app/Views/welcome_message.php

And it still fails to exclude the indicated file.

Tested in:

With PHP 8.0.25. Manual installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions