Laravel Pint
On this page, enable and configure the Laravel Pint 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 Laravel Pint Ignored Files dialog, which lists the files that Laravel Pint skips. PhpStorm suggests adding a new file to the list during inspection when waiting for response from the Laravel Pint 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.
|
Reformat only uncommitted files | Select the checkbox to only modify the files that have uncommitted changes. |
Path to pint.json | Specify the path to your own |
Ruleset | Select one of Laravel Pint's predefined group of rules. |
Run mode | Configure how often Laravel Pint is triggered to analyze code:
|
Idle threshold (ms) | Define the delay time in milliseconds after code modification before Laravel Pint runs. |
Minimum interval (ms) | Define the minimum time in milliseconds that must pass between two consecutive runs of Laravel Pint on the same file. This prevents Laravel Pint from running too frequently in case of frequent file savings or heavy typing. |
Laravel Pint Dialog
The dialog opens when you click next to the Configuration list on the Laravel Pint page.
Use this dialog to configure the used PHP interpreter, path to the Laravel Pint executable file, as well as Laravel Pint's behaviour. For more information, refer to Laravel Pint.
Item | Description |
|---|---|
Interpreters pane | The left-hand pane of the dialog shows the default PHP interpreter to use the Laravel Pint from. To add a different interpreter, click |
Laravel Pint path | In this field, specify the location of the Laravel Pint script: pint.bat for Windows or pint for Linux and macOS. PhpStorm detects the path to the Laravel Pint executable file in the To check that the specified path to pint.bat or pint ensures interaction between PhpStorm and Laravel Pint, that is, the tool can be launched from PhpStorm and PhpStorm will receive problem reports from it, click the Validate button. If validation passes successfully, PhpStorm displays the information on the detected Laravel Pint version. |
Tool process timeout | In this field, specify how long you want PhpStorm to wait for a result from Laravel Pint. If the timeout is exceeded, the process is terminated to prevent excessive CPU and memory usage. This lets you fine-tune the Laravel Pint process behavior depending on the configuration of your computer and the rule sets used. |