-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
79 lines (73 loc) · 6.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>PHP_CodeSniffer Rule Set</description>
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="7.3" />
<config name="testVersion" value="7.3-" />
<!-- Rules -->
<rule ref="WordPress" />
<rule ref="Squiz.Commenting.FileComment.Missing"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing.SpaceAfterOpen"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing.SpaceBeforeClose"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentAfterOpen"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.PrecisionAlignment.Found"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentAfterEnd"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.ClassComment.Missing"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.VariableComment.Missing"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamComment"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionComment.ParamCommentFullStop"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionComment.Missing"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.CodeAnalysis.AssignmentInCondition.Found"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.Commenting.DocComment.MissingShort"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.Commenting.DocComment.SpacingAfter"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Arrays.CommaAfterArrayItem.NoComma"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.InlineComment.SpacingBefore"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.InlineComment.SpacingAfter"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamType"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.PHP.CommentedOutCode.Found"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Security.NonceVerification.Recommended"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.Security.NonceVerification.Missing"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfter"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.PHP.YodaConditions.NotYoda"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.WP.I18n.MissingTranslatorsComment"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Commenting.FileComment.WrongStyle"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="WordPress.NamingConventions.ValidHookName.UseUnderscores"><exclude-pattern>*</exclude-pattern></rule>
<!-- <rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="my-plugin-textdomain" />
</properties>
</rule> -->
</ruleset>