-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Twig Coding Standards Fixer (#204)
* Adds Twig Coding Standards Fixer * Adds CircleCI job
- Loading branch information
1 parent
b217d48
commit 1620e2d
Showing
4 changed files
with
90 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$finder = new TwigCsFixer\File\Finder(); | ||
$finder->exclude('tests'); | ||
|
||
$config = new TwigCsFixer\Config\Config(); | ||
$config->setFinder($finder); | ||
$config->setCacheFile(null); | ||
# See https://www.drupal.org/project/drupal/issues/3284817#comment-15780893 | ||
#$config->addTokenParser(new Drupal\Core\Template\TwigTransTokenParser()); | ||
|
||
return $config; |
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