1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
psalm/.php-cs-fixer.dist.php

22 lines
519 B
PHP
Raw Normal View History

2022-12-13 20:46:43 -06:00
<?php
declare(strict_types=1);
use Symfony\Component\Finder\Finder;
$finder = (new Finder())
->files()
->name('/\.php$/')
->contains('<?php')
->in(['bin', 'src', 'tests']);
2022-12-13 20:46:43 -06:00
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRiskyAllowed(true)
// https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/doc/rules/index.rst
->setRules([
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'no_empty_phpdoc' => true,
'phpdoc_trim' => true,
]);