forked from jaredatch/Shared-Counts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
25 lines (25 loc) · 1.26 KB
/
phpcs.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0"?>
<ruleset name="Shared Counts">
<description>The code standard for Shared Counts.</description>
<arg name="extensions" value="php"/>
<rule ref="WordPress">
<!-- Allow less strict indenting and spacing -->
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing"/>
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found"/>
<!-- Don't make comment formatting quite as strict -->
<exclude name="Squiz.Commenting.InlineComment.SpacingAfter"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<!-- Less strict enqueueing rules -->
<exclude name="WordPress.WP.EnqueuedResourceParameters.NoExplicitVersion"/>
<exclude name="WordPress.WP.EnqueuedResourceParameters.NotInFooter"/>
<exclude name="WordPress.WP.EnqueuedResourceParameters.MissingVersion"/>
<!-- Database specific rules -->
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery"/>
<!-- PSR4 yo -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
</ruleset>