Mess Detector
On this page, enable and configure the Mess Detector quality tool.
Item | Description |
|---|---|
Configuration | Select the required interpreter from the list. The list contains all the currently configured local and remote PHP interpreters. For more information, refer to Configure local PHP interpreters and Configure remote PHP interpreters. Clicking |
Show ignored files | Click to open the Mess Detector Ignored Files dialog, which lists the files that Mess Detector skips. PhpStorm 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, PhpStorm displays its name and location.
|
Options |
|
Run mode | Configure how often Mess Detector is triggered to analyze code:
|
Idle threshold (ms) | Define the delay time in milliseconds after code modification before Mess Detector runs. |
Minimum interval (ms) | Define the minimum time in milliseconds that must pass between two consecutive runs of Mess Detector on the same file. This prevents Mess Detector from running too frequently in case of frequent file savings or heavy typing. |
Mess Detector Dialog
The dialog opens when you click next to the Configuration list on the Mess Detector page.
Use this dialog to configure the used PHP interpreter, path to the Mess Detector executable file, as well as Mess Detector's behaviour. For more information, refer to Mess Detector.
Item | Description |
|---|---|
Interpreters pane | The left-hand pane of the dialog shows the default PHP interpreter to use the Mess Detector from. To add a different interpreter, click |
Mess Detector path | In this field, specify the location of the Mess Detector script: phpmd.bat for Windows or phpmd for Linux and macOS. PhpStorm detects the path to the Mess Detector executable file in the To check that the specified path to phpmd.bat or phpmd ensures interaction between PhpStorm and Mess Detector, that is, the tool can be launched from PhpStorm and PhpStorm will receive problem reports from it, click the Validate button. This validation is equal to running the |
Tool process timeout | In this field, specify how long you want PhpStorm to wait for a result from Mess Detector. If the timeout is exceeded, the process is terminated to prevent excessive CPU and memory usage. This lets you fine-tune the Mess Detector process behavior depending on the configuration of your computer and the rule sets used. |