-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
20 lines (20 loc) · 1.09 KB
/
Copy pathphpcs.xml
File metadata and controls
20 lines (20 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<ruleset name="WP">
<description>My custom coding standard.</description>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>includes/libs/*</exclude-pattern>
<rule ref="WordPress-Core">
<!-- <exclude name="PEAR.Commenting.FileComment.Missing"/> -->
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<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="Generic.Files.LineEndings.InvalidEOLChar"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"/>
<exclude name="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment"/>
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
</ruleset>