IntelliJ IDEA 14.0.3 Help

Mess Detector

File | Settings | Languages and Frameworks | PHP | Mess Detector

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.

Item Description
PHP Mess Detector (phpmd) Path In this text box, specify the location of the Mess Detector executable file phpmd.bat. Type the path manually or click the Browse button browseButton.png and select the path in the dialog box, that opens. If you installed the tool through Composer, the default location is <project root folder>\vendor\bin\phpmd.bat.

To check that the specified path to phpmd.bat ensures interaction between IntelliJ IDEA and Mess Detector, that is, the tool can be launched from IntelliJ IDEA and IntelliJ IDEA will receive problem reports from it, click the Validate button. This validation is equal to running the phpmd --version command. If validation passes successfully, IntelliJ IDEA displays the information on the detected Mess Detector version.

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: Too many PHP Mess Detector messages and suggest adding the file to the Ignored files list.
Tool process timeout In this text box, specify how long you want IntelliJ IDEA to wait for a result from PHP Mess Detector, whereupon the process is killed to prevent excessive CPU and memory usage. This gives you the capability to fine tune the PHP Mess Detector process behavior depending on the configuration of your computer and the rule sets used.
Ignored files This area displays a list of files that Mess Detector skips. IntelliJ IDEA suggests adding a new file to the list during inspection when waiting for response from the Mess Detector 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.
  • To delete a file from the list and have Mess Detector process it again, select the file and click the Remove file button delete.png.
  • To remove all the files from the list, click the Clean the list button close.png.

See Also

Last modified: 3 February 2015
comments powered by Disqus