Code Sniffer and Mess detector not applying in vendor folder
Answered
I am developing for Magento 2 and have set up PHPCS and it is working and highlighting issues in all of my php files except for those within the vendor folder.
I have tried clicking 'Include vendor' in Editor > Inspections > PHP > Code Quality Tools > PHP Sniffer Validation
but this does not seem to change anything.
Any ideas?
Please sign in to leave a comment.
PhpStorm doesn't run inspections on "excluded" directories by default.
The solution that might work for you is to "unexclude" the vendor directory. You can find and remove excluded directories at File | Settings | Directories.
That's what I was looking for. Thanks.