diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
| commit | 039ec3199124a22a9760855c592f4bfecebe3e32 (patch) | |
| tree | e30eb21b7445d61a7fa12acc34e7ec3d4da01ac2 | |
| parent | 2df14eb121aeeaeed08779a255ac81edc8b571b4 (diff) | |
php-cs-fixer config
| -rw-r--r-- | .php-cs-fixer.dist.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..33d4a09 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,34 @@ +<?php + +declare(strict_types=1); + +use PhpCsFixer\Config; +use PhpCsFixer\Finder; + +return (new Config()) + ->setRiskyAllowed(false) + ->setRules([ + //'@auto' => true, + '@Symfony' => true, + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => false, + 'import_functions' => false, + ], + ]) + // 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config + ->setFinder( + (new Finder()) + // 💡 root folder to check + ->in(__DIR__) + // 💡 additional files, eg bin entry file + // ->append([__DIR__.'/bin-entry-file']) + // 💡 folders to exclude, if any + // ->exclude([/* ... */]) + // 💡 path patterns to exclude, if any + // ->notPath([/* ... */]) + // 💡 extra configs + // ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode + // ->ignoreVCS(true) // true by default + ) +; |
