-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9400431
commit 5e5323d
Showing
6 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/Config/Fixtures/directoryWithCustomRuleset/.twig-cs-fixer.dist.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use TwigCsFixer\Config\Config; | ||
use TwigCsFixer\Rules\Delimiter\DelimiterSpacingRule; | ||
use TwigCsFixer\Ruleset\Ruleset; | ||
use TwigCsFixer\Standard\TwigCsFixer; | ||
|
||
$ruleset = new Ruleset(); | ||
$ruleset->addStandard(new TwigCsFixer()); | ||
$ruleset->removeRule(DelimiterSpacingRule::class); | ||
|
||
$config = new Config('CustomDist'); | ||
$config->setRuleset($ruleset); | ||
|
||
return $config; |
17 changes: 17 additions & 0 deletions
17
tests/Config/Fixtures/directoryWithCustomRuleset2/.twig-cs-fixer.dist.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use TwigCsFixer\Config\Config; | ||
use TwigCsFixer\Rules\Delimiter\DelimiterSpacingRule; | ||
use TwigCsFixer\Ruleset\Ruleset; | ||
use TwigCsFixer\Standard\TwigCsFixer; | ||
|
||
$ruleset = new Ruleset(); | ||
$ruleset->addStandard(new TwigCsFixer()); | ||
$ruleset->removeRule(DelimiterSpacingRule::class); | ||
|
||
$config = new Config('CustomDist'); | ||
$config->setRuleset($ruleset); | ||
|
||
return $config; |