forked from awesomemotive/WP-Mail-SMTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
37 lines (36 loc) · 2.07 KB
/
phpcs.xml
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
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<ruleset name="WP-Mail-SMTP">
<description>The code standard for WP Mail SMTP.</description>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar"/>
<exclude name="WordPress.XSS.EscapeOutput.UnsafePrintingFunction"/>
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="WordPress.CSRF.NonceVerification"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="WordPress.VIP"/>
<!--<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>-->
<!--<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/>-->
<!--<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>-->
<!--<exclude name="Squiz.Commenting.InlineComment.SpacingAfter"/>-->
<!--<exclude name="Squiz.Commenting.FileComment.Missing"/>-->
<!--<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"/>-->
<!--<exclude name="WordPress.Classes.ClassInstantiation.MissingParenthesis"/>-->
<!--<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>-->
<!--<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.SpaceBeforeArrayCloser"/>-->
</rule>
</ruleset>