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 whitelist_patterns option to PhpMd task #496

Merged
merged 3 commits into from
May 25, 2018

Conversation

mgeoffray
Copy link
Contributor

@mgeoffray mgeoffray commented Apr 16, 2018

Q A
Branch master for features and deprecations
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets no

As for #160 this PR add a new whitelist_patternsoption to PhpMd task. It will be used to filter files to be validated.

Example for a Symfony, validate PHP files only in src/ directory

phpmd:
    whitelist_patterns: ["^src/(.*)"]

@Landerstraeten Landerstraeten merged commit 12f1750 into phpro:master May 25, 2018
@Landerstraeten
Copy link
Contributor

Thanks!

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