Skip to content

Commit 1110c7e

Browse files
committed
Added configuration related to indenting (No tabs, only spaces) 🛠
1 parent c824288 commit 1110c7e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎PilotIn/ruleset.xml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<!-- Disable this rule so we can use "Generic.Formatting.SpaceAfterNot" rule -->
1616
<exclude name="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter" />
1717

18+
<!-- Allow back space indent -->
19+
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
20+
1821
</rule>
1922

2023
<!-- Prevent space after not "!" -->
@@ -24,6 +27,17 @@
2427
</properties>
2528
</rule>
2629

30+
<!-- Force space indent configuration -->
31+
<rule ref="Generic.WhiteSpace.ScopeIndent">
32+
<properties>
33+
<property name="indent" value="4"/>
34+
<property name="tabIndent" value="false"/>
35+
</properties>
36+
</rule>
37+
38+
<!-- Disable Tab indent -->
39+
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
40+
2741
<!-- Add extra words delimiter for hook names -->
2842
<rule ref="WordPress.NamingConventions.ValidHookName">
2943
<properties>

0 commit comments

Comments
 (0)