Skip to content

Commit c7d996e

Browse files
edgardmessiassamdark
authored andcommitted
Added rule for: If string doesn't contain variables or single quotes, use single quotes (#27)
1 parent 7434d0d commit c7d996e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Yii2/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
<!-- ... other Yii2 specific rules. -->
3131
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
3232

33+
<!-- If string doesn't contain variables or single quotes, use single quotes. -->
34+
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
35+
<!-- Not check variable substitution -->
36+
<severity>0</severity>
37+
</rule>
38+
3339
<exclude-pattern>*/i18n/data/*</exclude-pattern>
3440
<exclude-pattern>*/views/errorHandler/*</exclude-pattern>
3541
<exclude-pattern>*/requirements/*</exclude-pattern>

0 commit comments

Comments
 (0)