Skip to content

Added trailing slash to excluded directories#204

Open
petoc wants to merge 3 commits intotighten:3.xfrom
petoc:default-exclude
Open

Added trailing slash to excluded directories#204
petoc wants to merge 3 commits intotighten:3.xfrom
petoc:default-exclude

Conversation

@petoc
Copy link
Copy Markdown

@petoc petoc commented Apr 29, 2026

PHPCodeSniffer is treating paths in ignore option as patterns, when passing path build, paths like /build/, /builds/, /building/ and so on, are all ignored, same for other default paths.
As pointed out in #201, GitLab CI is by default using /builds/ directory for running jobs, so whole contents is excluded.
Adding trailing slash should fix this behavior, but PHPCodeSniffer still matches paths like /notbuild/ and ignores them.
So there probably should be leading slash, but this could affect other tools. This seems like reasonable hotfix.
Hopefully it will not cause any side effects.
Should fix issues #200, #201 .

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant