Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm: How to disable PHPCS for Javascript

PHPCS is checking my JS files on PhpStorm,

I need to disable this feature

I added this line in the file phpcs.xml.dist but no luck

<exclude-pattern>*\.(inc|css|js)</exclude-pattern> 
like image 798
unloco Avatar asked Nov 23 '18 21:11

unloco


1 Answers

Finally found it, I had to disable some extensions in PhpStorm config
File | Settings | Editor | Inspections > PHP Code Sniffer Validation
Or search:
PHP Code Sniffer Validation
or
PHP_CodeSniffer validation

enter image description here

There is a related bug though
https://youtrack.jetbrains.com/issue/WI-44308

like image 130
unloco Avatar answered Sep 18 '22 07:09

unloco