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

Add --stdin-path argument to phpcs command #14

Conversation

david-binda
Copy link
Collaborator

By passing in the file name via --stdin-path argument, we make the <exclude-pattern> and <include-patter> configs in ruleset.xml working properly.

Without passing in the file path, PHPCS does not know with what file it's currently working, so can't properly apply those.

@sirbrillig
Copy link
Owner

Oh, nice! I was always bothered by that but I didn't know there was a way to avoid it.

@sirbrillig sirbrillig merged commit 847ea1b into sirbrillig:master Nov 14, 2019
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.

2 participants