Skip to content

Commit

Permalink
twigcs ruleset update
Browse files Browse the repository at this point in the history
  • Loading branch information
birdkiwi committed Oct 22, 2021
1 parent b140a52 commit e5a770f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions TwigRules/YNARuleset.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getRules()
// Dictates spaces between the [] and the inside of the array.
$configurator->setArraySpacingPattern('[expr]');
$configurator->setEmptyArraySpacingPattern('[]');
$configurator->setHashSpacingPattern('{key: expr, key: expr}');
$configurator->setHashSpacingPattern('{ key: expr, key: expr }');
$configurator->setEmptyHashSpacingPattern('{}');
$configurator->setTernarySpacingPattern('expr ? expr : expr||expr ?: expr');
$configurator->setSliceSpacingPattern('[expr:expr]');
Expand All @@ -41,12 +41,6 @@ public function getRules()
$builder = new RulesetBuilder($configurator);

return [
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\RegEngineRule(Violation::SEVERITY_ERROR, $builder->build()),
new Rule\UnusedMacro(Violation::SEVERITY_WARNING),
new Rule\TrailingSpace(Violation::SEVERITY_ERROR),
Expand Down

0 comments on commit e5a770f

Please sign in to comment.