Closed ronilaukkarinen closed 5 years ago
This doesn't look like an issue with this project; it looks like you're getting the error because you're incorrectly passing the glob patterns to gulp.src()
. Have a look at the docs, if you want to pass multiple globs, the first argument should be an array of patterns.
As for gulp-phpcs
processing more than PHP files, I believe that's by design. PHP_CodeSniffer works with PHP, CSS and JS.
@DaveLak is right. This is a bug of the plugin. :smile:
Recently noticed gulp-phpcs starts to run files other than php, be it css or js... so I defined the src better, but then getting:
TypeError: Cannot create property 'cwd' on string 'content/themes/dev/template-parts/*.php'
Here's my task currently:
How to fix?