Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm Is throwing an error when trying to run phpcs

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

like image 225
nobrandheroes Avatar asked Jun 30 '15 20:06

nobrandheroes


1 Answers

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.

Code sniffer timeout

like image 100
sunsay Avatar answered Sep 18 '22 15:09

sunsay