PluginProbe
Authorsy – Author Box, Multiple Authors, Guest Authors & Post Rating / trunk
Authorsy – Author Box, Multiple Authors, Guest Authors & Post Rating vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8
authorsy / phpcs.xml

phpcs.xml in Authorsy – Author Box, Multiple Authors, Guest Authors & Post Rating trunk, at phpcs.xml

134 lines 5.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?xml version="1.0"?>
2 <ruleset name="WordPress Coding Standards for EasyAuthor">
3 <description>Generally-applicable sniffs for WordPress plugins.</description>
4
5 <!-- What to scan -->
6 <file>.</file>
7 <exclude-pattern>*/.git/*</exclude-pattern>
8 <exclude-pattern>*/.githooks/*</exclude-pattern>
9 <exclude-pattern>*/.make/*</exclude-pattern>
10 <exclude-pattern>*/assets/*</exclude-pattern>
11 <exclude-pattern>*/src/*</exclude-pattern>
12 <exclude-pattern>*/lib/*</exclude-pattern>
13 <exclude-pattern>*/dist/*</exclude-pattern>
14 <exclude-pattern>*/build/*</exclude-pattern>
15 <exclude-pattern>*/node_modules/*</exclude-pattern>
16 <exclude-pattern>*/vendor/*</exclude-pattern>
17 <exclude-pattern>*/tests/*</exclude-pattern>
18 <exclude-pattern>*.js</exclude-pattern>
19 <exclude-pattern>*.mo</exclude-pattern>
20 <exclude-pattern>*.po</exclude-pattern>
21 <exclude-pattern>*.twig</exclude-pattern>
22 <exclude-pattern>*.css</exclude-pattern>
23 <exclude-pattern>*.scss</exclude-pattern>
24 <exclude-pattern>languages/*</exclude-pattern>
25
26 <!-- How to scan -->
27 <!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
28 <!-- Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
29 <arg value="sp"/> <!-- Show sniff and progress -->
30 <arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
31 <arg name="colors"/>
32 <arg name="extensions" value="php"/>
33 <arg name="parallel" value="12"/><!-- Enables parallel processing when available for faster results. -->
34
35 <!-- Rules: Check PHP version compatibility -->
36 <!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
37 <config name="testVersion" value="7.0-"/>
38
39 <!-- Rules: Check PHP version compatibility-->
40 <!-- https://github.com/PHPCompatibility/PHPCompatibilityWP -->
41 <rule ref="PHPCompatibilityWP"/>
42
43 <!-- Rules: WordPress Coding Standards -->
44 <!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
45 <!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
46 <config name="minimum_supported_wp_version" value="5.4"/>
47 <rule ref="WordPress-Extra"/>
48 <rule ref="WordPress">
49 <exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
50 </rule>
51 <rule ref="WordPress.WP.I18n">
52 <properties>
53 <!-- Value: replace the text domain used. -->
54 <property name="text_domain" type="array" value="authorsy"/>
55 </properties>
56 </rule>
57 <rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
58 <properties>
59 <property name="blank_line_check" value="true"/>
60 </properties>
61 </rule>
62
63 <rule ref="Squiz.Commenting">
64 <severity>0</severity>
65 </rule>
66 <rule ref="PEAR.Functions.FunctionCallSignature.MultipleArguments">
67 <severity>0</severity>
68 </rule>
69 <rule ref="Generic.Commenting.DocComment.SpacingBeforeTags">
70 <severity>0</severity>
71 </rule>
72 <rule ref="WordPress.Files.FileName">
73 <severity>0</severity>
74 </rule>
75 <rule ref="WordPress.PHP.DevelopmentFunctions">
76 <severity>0</severity>
77 </rule>
78 <rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
79 <severity>0</severity>
80 </rule>
81 <rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
82 <severity>0</severity>
83 </rule>
84 <rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning">
85 <severity>0</severity>
86 </rule>
87 <rule ref="Generic.Commenting.DocComment.MissingShort">
88 <severity>0</severity>
89 </rule>
90 <rule ref="WordPress.PHP.YodaConditions.NotYoda">
91 <severity>0</severity>
92 </rule>
93 <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace">
94 <severity>0</severity>
95 </rule>
96 <rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterCloseParenthesis">
97 <severity>0</severity>
98 </rule>
99 <rule ref="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound">
100 <type>warning</type>
101 </rule>
102 <rule ref="WordPress.DB.DirectDatabaseQuery.NoCaching">
103 <severity>0</severity>
104 </rule>
105 <rule ref="WordPress.PHP.StrictInArray.MissingTrueStrict">
106 <type>error</type>
107 </rule>
108 <rule ref="WordPress.DB.DirectDatabaseQuery.DirectQuery">
109 <severity>0</severity>
110 </rule>
111 <rule ref="WordPress.DB.PreparedSQL.NotPrepared">
112 <type>warning</type>
113 </rule>
114 <rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped">
115 <severity>0</severity>
116 </rule>
117 <rule ref="WordPress.PHP.DevelopmentFunctions.error_log_var_export">
118 <severity>0</severity>
119 </rule>
120 <rule ref="WordPress">
121 <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
122 </rule>
123 <rule ref="WordPress.Security.ValidatedSanitizedInput">
124 <properties>
125 <property name="customSanitizingFunctions" type="array">
126 <element value="wc_clean"/>
127 </property>
128 </properties>
129 </rule>
130 <rule ref="Squiz.PHP.CommentedOutCode.Found">
131 <severity>0</severity>
132 </rule>
133 </ruleset>
134