Skip to content

Commit 1693d25

Browse files
committed
Allow short ternaries in coding standards 🛠
1 parent 5b0db6b commit 1693d25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎PilotIn/ruleset.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626

2727
</rule>
2828

29+
<!-- WordPress Core ruleset -->
30+
<rule ref="WordPress-Core">
31+
32+
<!-- Allow short ternaries -->
33+
<exclude name="WordPress.PHP.DisallowShortTernary" />
34+
35+
</rule>
36+
2937
<!-- Allow Meta & Tax Query -->
3038
<rule ref="WordPress.DB.SlowDBQuery">
3139
<properties>

0 commit comments

Comments
 (0)