11

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

nobrandheroes
  • 748
  • 1
  • 10
  • 17

1 Answers1

7

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

sunsay
  • 1,500
  • 2
  • 21
  • 28