Quality Tools
for macOS
Ctrl+Alt+S
The page is available only when the PHP plugin is enabled. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Managing Plugins.
Code Sniffer
In this section, choose the Code Sniffer script to use.
Item | Description |
---|---|
Configuration | Choose the Code Sniffer script:
|
Ignored files | Click to open the Code Sniffer ignored files dialog, which lists the files that Code Sniffer skips. PhpStorm 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, PhpStorm displays its name and location.
|
Code Sniffer Dialog
The dialog opens when you click next to the Configuration list on the Code Sniffer page.
Use this dialog to configure local Code Sniffer scripts or scripts associated with remote PHP interpreters as well as configure Code Sniffer's behaviour. See PHP Code Sniffer for details.
Item | Description |
---|---|
PHP Code Sniffer (phpcs) Path | In this field, specify the location of the Code Sniffer utility If the script is associated with a PHP interpreter, PhpStorm detects the path to it and fills in the field automatically but you can edit it if necessary. Type the path manually or click and select the path in the dialog that opens. To check that the specified path to phpcs.bat or phpcs ensures interaction between PhpStorm and Code Sniffer, 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 |
Interpreter | The field shows the chosen PHP interpreter to use the Code Sniffer from. |
Maximum number of messages per file | In this field, 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. PhpStorm will display the following warning right in the code: |
Tool process timeout | In this field, specify how long you want PhpStorm to wait for a result from PHP Code Sniffer. If the timeout is exceeded, the process is killed to prevent excessive CPU and memory usage. This lets you fine tune the PHP Code Sniffer process behavior depending on the configuration of your computer and the rule sets used. |
PHP Code Beautifier and Fixer Settings | In this area, provide the path to the PHP Code Beautifier and Fixer tool in the Path to phpcbf field. Type the path manually or click and select the path in the dialog that opens. |
Mess Detector
In this section, choose the Mess Detector script to use.
Item | Description |
---|---|
Configuration | Choose the Mess Detector script:
|
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.
|
Mess Detector Dialog
The dialog opens when you click next to the Configuration list on the Mess Detector page.
Use this dialog to configure local Mess Detector scripts or scripts associated with remote PHP interpreters as well as configure Mess Detector's behaviour. See PHP Mess Detector for details.
Item | Description |
---|---|
PHP Mess Detector (phpmd) Path | In this field, specify the location of the Mess Detector utility If the script is associated with a PHP interpreter, PhpStorm detects the path to it and fills in the field automatically but you can edit it if necessary. Type the path manually or click and select the path in the dialog that opens. 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 |
Interpreter | The field shows the chosen PHP interpreter to use the Mess Detector from. |
Maximum number of messages per file | In this field, 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. PhpStorm will display the following warning right in the code: |
Tool process timeout | In this field, specify how long you want PhpStorm to wait for a result from PHP Mess Detector. If the timeout is exceeded, the process is killed to prevent excessive CPU and memory usage. This lets you fine tune the PHP Mess Detector process behavior depending on the configuration of your computer and the rule sets used. |
PHP Code Beautifier and Fixer Settings | In this area, provide the path to the PHP Code Beautifier and Fixer tool in the Path to phpcbf field. Type the path manually or click and select the path in the dialog that opens. |
PHP CS Fixer
In this section, choose the PHP CS Fixer script to use.
Item | Description |
---|---|
Configuration | Choose the PHP CS Fixer script:
|
Ignored files | Click to open the PHP CS Fixer ignored files dialog, which lists the files that PHP CS Fixer skips. PhpStorm suggests adding a new file to the list during inspection when waiting for response from the PHP CS Fixer 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.
|
PHP CS Fixer Dialog
The dialog opens when you click next to the Configuration list on the PHP CS Fixer page.
Use this dialog to configure local PHP CS Fixer scripts or scripts associated with remote PHP interpreters as well as configure PHP CS Fixer's behaviour. See PHP CS Fixer for details.
Item | Description |
---|---|
PHP PHP CS Fixer (php-cs-fixer) Path | In this field, specify the location of the PHP CS Fixer utility If the script is associated with a PHP interpreter, PhpStorm detects the path to it and fills in the field automatically but you can edit it if necessary. Type the path manually or click and select the path in the dialog that opens. To check that the specified path to php-cs-fixer.bat or php-cs-fixer ensures interaction between PhpStorm and PHP CS Fixer, 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 |
Interpreter | The field shows the chosen PHP interpreter to use the PHP CS Fixer from. |
Maximum number of messages per file | In this field, 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. PhpStorm will display the following warning right in the code: |
Tool process timeout | In this field, specify how long you want PhpStorm to wait for a result from PHP PHP CS Fixer. If the timeout is exceeded, the process is killed to prevent excessive CPU and memory usage. This lets you fine tune the PHP PHP CS Fixer process behavior depending on the configuration of your computer and the rule sets used. |
PHP Code Beautifier and Fixer Settings | In this area, provide the path to the PHP Code Beautifier and Fixer tool in the Path to phpcbf field. Type the path manually or click and select the path in the dialog that opens. |