FlagPole/.php-cs-fixer.dist.php

27 lines
612 B
PHP
Raw Normal View History

2025-12-09 22:48:07 +00:00
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new Config())
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_unused_imports' => true,
'declare_strict_types' => true,
'no_trailing_whitespace' => true,
'single_quote' => true,
'no_superfluous_phpdoc_tags' => true,
]);