I have a very serious problem with PHP Code Sniffer. I configured it according to the instructions:
- Download PHP Code Sniffer from GitHub as zip-package ( https://github.com/squizlabs/PHP_CodeSniffer )
File > Settings > Languages & Frameworks > PHP > Code Sniffer > Configuration > [...]
Path: correct path to code sniffer location.
Max. messages per file: 50
Timeout: 30 s.
File > Settings > Editor > Inspections > PHP > PHP Code Sniffer validation
Check the option on list.
Check the option beside Show warning as: "Warning"
Coding standard: PSR2.
When I write the code in my project, I get the message:
PHP Code Sniffer
phpcs: Can not correctly run the tool with parameters:
Possible tool process hangup after 30 sec.
I tried with diffrent versions of PHP (7.1 and 5.6) and diffrent versions of code sniffer (3.2 and 3.1...). The commands "php" and "phpcs" work in the console properly. The file C:/Users/student/AppData/Local/Temp/phpcs_temp.tmp/index.php is created for 30 seconds and then php storm deletes it. I can even type in my console "phpcs C:/Users/student/AppData/Local/Temp/phpcs_temp.tmp/index.php --standard=PSR2 --encoding=utf-8 --report=xml" and it works great, but not in PHPStorm!
XDebug is disabled (I always use "clear" version of PHP with default config).
I'm using Windows 10. My colleagues using PHPStrom on Windows 7 do not have this problem.
Any idea what's wrong with PHPStorm?