Code Sniffer and Mess detector not applying in vendor folder

已回答

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?

0

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.

1

That's what I was looking for. Thanks.

0

请先登录再写评论。