Skip to content

Commit ecd3c1c

Browse files
Update doc about CompactHashRule (#379)
1 parent 7336194 commit ecd3c1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/rules.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
Ensures there is one space before and after block names.
1414

15+
- **CompactHashRule**:
16+
17+
Ensures that hash key are not omitted. Options are:
18+
- `compact`: hash key must be omitted if it is the same as the variable name.
19+
1520
- **DelimiterSpacingRule** (Configurable):
1621

1722
Ensures there is one space before `}}`, `%}` and `#}`, and after `{{`, `{%`, `{#` if the content
@@ -172,6 +177,7 @@ new TwigCsFixer\Rules\Whitespace\IndentRule(3);
172177
- Twig
173178
- BlankEOFRule
174179
- BlockNameSpacingRule
180+
- CompactHashRule
175181
- EmptyLinesRule
176182
- HashQuoteRule
177183
- IncludeFunctionRule

0 commit comments

Comments
 (0)