I am trying to run the PHP CodeSniffer, but I get an error.
PHP Code Sniffer
phpcs: Can not correctly run the tool with parameters:
C:/Users/me/AppData/Local/Temp/___0.tmp/Foo.class.php
--standard=PSR2
--encoding=utf-8
--report=xml
Possible tool process hangup after 5 sec.
I think it has to do with the file location. My files are not in Temp. However, I see no place to set a default folder
You need to increase timeout value.
Go to Settings/Preferences
- Languages & Frameworks
- PHP
- Code Sniffer
and change/add configuration for the tool. You can set tool process timeout up to 30 seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With