Php error message sniffer to commit to git

Hello!

I get an error message in the Event Log

-----------------------
12:09:32 PHP Code Sniffer
         phpcs: Can not correctly run the tool with parameters:
         C:\Users\Stephan.Krauss\AppData\Local\Temp\___4822859184784992028.tmp\index.php
         --standard=PSR2
         --encoding=utf-8
         Possible tool process hangup after 5 sec.
         Exclude index.php from PHP Code Sniffer analysis.
------------------------

The error occurs after a commit on the git version control.

Who can help?

Sincerely yours

Stephan

3 comments

Stephan,
could you please clarify it a bit:
- Does it happen only at commit time or when you open index.php in the editor too?
- Does the message appear only for index.php or for other files as well?
If only index.php is affected you can exclude it from PhpCodeSniffer analysis by clicking the link in the message.

0

Hello!

The error occurs when I commite to the version management and when I load this file into the editor window. This error also occurs with other files.

Sincerely yours

Stephan

0

You may try to set a bigger timeout: open Settings, choose PHP/CodeSniffer and specify a bigger value, say, 30 seconds in "Tool process timeout". Click "Apply".

0

Please sign in to leave a comment.