php-cs-fixer

php-cs-fixer is a linter for PHP.

You can enable the php-cs-fixer linter with:

trunk check enable php-cs-fixer

Auto Enabling

php-cs-fixer will be auto-enabled if a .php-cs-fixer.dist.php config file is present.

Settings

php-cs-fixer supports the following config files:

  • .php-cs-fixer.dist.php

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

Last updated