Skip to content

Commit

Permalink
Re-add TrailingCommaMultiLineRule to standard (#321)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Jordan <[email protected]>
  • Loading branch information
joncjordan and Jon Jordan authored Nov 5, 2024
1 parent 5b84e94 commit 4f482ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Standard/TwigCsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use TwigCsFixer\Rules\Delimiter\BlockNameSpacingRule;
use TwigCsFixer\Rules\Function\IncludeFunctionRule;
use TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule;
use TwigCsFixer\Rules\Punctuation\TrailingCommaSingleLineRule;
use TwigCsFixer\Rules\String\HashQuoteRule;
use TwigCsFixer\Rules\String\SingleQuoteRule;
Expand All @@ -30,6 +31,7 @@ public function getRules(): array
new IncludeFunctionRule(),
new IndentRule(),
new SingleQuoteRule(),
new TrailingCommaMultiLineRule(),
new TrailingCommaSingleLineRule(),
new TrailingSpaceRule(),
];
Expand Down
2 changes: 2 additions & 0 deletions tests/Standard/TwigCsFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use TwigCsFixer\Rules\Operator\OperatorNameSpacingRule;
use TwigCsFixer\Rules\Operator\OperatorSpacingRule;
use TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule;
use TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule;
use TwigCsFixer\Rules\Punctuation\TrailingCommaSingleLineRule;
use TwigCsFixer\Rules\String\HashQuoteRule;
use TwigCsFixer\Rules\String\SingleQuoteRule;
Expand Down Expand Up @@ -42,6 +43,7 @@ public function testGetRules(): void
new IncludeFunctionRule(),
new IndentRule(),
new SingleQuoteRule(),
new TrailingCommaMultiLineRule(),
new TrailingCommaSingleLineRule(),
new TrailingSpaceRule(),
], $standard->getRules());
Expand Down

0 comments on commit 4f482ed

Please sign in to comment.