-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
18 lines (18 loc) · 1018 Bytes
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<ruleset name="WP">
<description>My custom coding standard.</description>
<rule ref="WordPress-Core">
<!-- <exclude name="PEAR.Commenting.FileComment.Missing"/> -->
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="WordPress.PHP.StrictComparisons"/>
<exclude name="WordPress.PHP.StrictInArray"/>
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/>
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.Found"/>
<exclude name="WordPress.PHP.DisallowShortTernary.Found"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"/>
<exclude name="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment"/>
</rule>
</ruleset>