File | Settings | Languages and Frameworks | PHP | Code Sniffer
The page is available only when the PHP plugin is enabled.
The plugin is not bundled with IntelliJ IDEA, but it is available from the JetBrains plugin repository. Once enabled, the plugin is available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects. See Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins for details.
|PHP Code Sniffer (phpcs) Path||
In this text box, specify the location of the Code Sniffer utility
To check that the specified path to
|Maximum number of messages per file||
In this text box, set the upper limit for the total number of messages to be reported for a file. All the messages above this limit will be rejected.
IntelliJ IDEA will display the following warning right in the code:
|Tool process timeout||In this text box, specify how long you want IntelliJ IDEA to wait for a result from PHP Code Sniffer, whereupon the process is killed to prevent excessive CPU and memory usage. This gives you the capability to fine tune the PHP Code Sniffer process behavior depending on the configuration of your computer and the rule sets used.|
This area displays a list of files that Code Sniffer skips. IntelliJ IDEA suggests adding a new file to the list during inspection when waiting for response from the Code Sniffer exceeds the limit specified in the Tool process timeout field.
This is done to prevent slowing down processing. For each file, IntelliJ IDEA displays its name and location.