mirror of
https://github.com/symfony/ux.git
synced 2026-03-24 00:02:21 +01:00
31 lines
782 B
PHP
31 lines
782 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
$ruleset = new TwigCsFixer\Ruleset\Ruleset();
|
|
$ruleset->addStandard(new TwigCsFixer\Standard\TwigCsFixer());
|
|
|
|
$finder = new TwigCsFixer\File\Finder();
|
|
|
|
$config = new TwigCsFixer\Config\Config();
|
|
$config->setCacheFile('.twig-cs-fixer.cache');
|
|
$config->setRuleset($ruleset);
|
|
$config->setFinder(
|
|
(new TwigCsFixer\File\Finder)
|
|
->in(__DIR__)
|
|
->notPath('#/Fixtures/#')
|
|
->notPath('#/assets/#')
|
|
->notPath('#/var/#')
|
|
// apps/
|
|
->notPath(['#config/#', '#public/#', 'importmap.php'])
|
|
);
|
|
|
|
return $config;
|