This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
128 lines (113 loc) · 5.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0"?>
<ruleset name="Codeat">
<description>Codeat coding standard.</description>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>freemius</exclude-pattern>
<exclude-pattern>/lib/</exclude-pattern>
<exclude-pattern>*test*</exclude-pattern>
<exclude-pattern>index.php</exclude-pattern>
<exclude-pattern>CMB2</exclude-pattern>
<!-- Include some specific sniffs -->
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Commenting.DocComment"/>
<rule ref="Generic.Commenting.DocComment.TagValueIndent"/>
<rule ref="Generic.Commenting.DocComment.ParamNotFirst"/>
<rule ref="Generic.Commenting.DocComment.ParamGroup"/>
<rule ref="Generic.Commenting.DocComment.NonParamGroup"/>
<rule ref="Generic.Commenting.DocComment.TagsNotGrouped"/>
<rule ref="Generic.Commenting.DocComment.ContentAfterOpen"/>
<rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/>
<rule ref="Generic.Commenting.DocComment.ContentBeforeClose"/>
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.FileComment.WrongStyle" />
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen" />
<exclude name="Squiz.Commenting.PostStatementComment.Found" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
<exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing" />
</rule>
<rule ref="PEAR.NamingConventions">
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid" />
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
</rule>
<rule ref="PEAR.NamingConventions.ValidFunctionName">
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps" />
<exclude name="PEAR.NamingConventions.ValidFunctionName.NotCamelCaps" />
</rule>
<!-- https://github.com/wimg/PHPCompatibility/ -->
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.PHP.EmptyNonVariable.Found" />
</rule>
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.2-"/>
<rule ref="WordPress">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
<exclude name="Generic.PHP.Syntax" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital" />
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys" />
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.VIP.DirectDatabaseQuery" />
<exclude name="WordPress.VIP.FileSystemWritesDisallow"/>
<exclude name="WordPress.VIP.ValidatedSanitizedInput"/>
<exclude name="WordPress.XSS.EscapeOutput" />
<exclude name="WordPress.PHP.YodaConditions"/>
<exclude name="WordPress.Arrays.ArrayIndentation.ItemNotAligned" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_error_log" />
<exclude name="WordPress.Variables.GlobalVariables"/>
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain"/>
<exclude name="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter" />
<exclude name="WordPress.Arrays.ArrayDeclaration.NoComma" />
<exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned" />
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page_posts_per_page" />
<exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned" />
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page_posts_per_page" />
<exclude name="WordPress.VIP.SlowDBQuery.slow_db_query_tax_query" />
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification"/>
<exclude name="WordPress.Classes.ClassInstantiation.MissingParenthesis" />
</rule>
<rule ref="WordPress.VIP.RestrictedFunctions">
<properties>
<property name="exclude" value="file_get_contents,curl" />
</properties>
<exclude name="WordPress.VIP.RestrictedFunctions.switch_to_blog_switch_to_blog" />
<exclude name="WordPress.VIP.RestrictedFunctions.user_meta_update_user_meta"/>
<exclude name="WordPress.VIP.RestrictedFunctions.user_meta_get_user_meta"/>
<exclude name="WordPress.VIP.RestrictedFunctions.switch_to_blog"/>
</rule>
<rule ref="Wordpress-Docs">
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
</rule>
<rule ref="WordPress.WP.DeprecatedClasses">
<properties>
<property name="minimum_supported_version" value="4.6"/>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.6"/>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedParameters">
<properties>
<property name="minimum_supported_version" value="4.6"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="glossary,woo-fiscalita-italiana"/>
</properties>
</rule>
</ruleset>