PluginProbe
WP Discourse / 2.5.9
WP Discourse v2.5.9
2.6.4 2.6.3 1.2.1 1.2.2 1.2.5 1.2.6 1.2.7 1.2.8 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.85 1.4.0 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 All 150 releases
wp-discourse / phpcs.xml

phpcs.xml in WP Discourse 2.5.9, at phpcs.xml

53 lines 2.4 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="">
3 <description>A custom set of code standard rules for the WP Discourse plugin.</description>
4 <rule ref="WordPress">
5 <exclude name="Generic.Files.LowercasedFilename" />
6 <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
7 <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
8 <exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
9 <exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
10 <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
11 <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
12 <!-- DOMDocument uses camelCase. -->
13 <exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
14 <exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
15 </rule>
16
17 <rule ref="PHPCompatibility"/>
18
19 <extensions>php</extensions>
20 <exclude-pattern>*/blocks/comments/build</exclude-pattern>
21 <exclude-pattern>*/lib/wp-new-user-notification.php*</exclude-pattern>
22 <exclude-pattern>*/vendor/*</exclude-pattern>
23 <exclude-pattern>*/admin/discourse-sidebar/node_modules</exclude-pattern>
24 <exclude-pattern>*/admin/discourse-sidebar/build</exclude-pattern>
25 <exclude-pattern>*/vendor_namespaced/*</exclude-pattern>
26 <exclude-pattern>*.js</exclude-pattern>
27 <exclude-pattern>*.css</exclude-pattern>
28 <exclude-pattern>scoper.inc.php</exclude-pattern>
29 <exclude-pattern>*/node_modules/*</exclude-pattern>
30
31 <rule ref="Squiz.Commenting.FunctionComment.Missing">
32 <exclude-pattern>*/tests/*</exclude-pattern>
33 </rule>
34 <rule ref="Squiz.Commenting.InlineComment.InvalidEndChar">
35 <exclude-pattern>*/tests/*</exclude-pattern>
36 </rule>
37 <rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
38 <exclude-pattern>*/tests/*</exclude-pattern>
39 </rule>
40 <rule ref="Squiz.Commenting.FunctionComment.ParamNameNoMatch">
41 <exclude-pattern>*/tests/*</exclude-pattern>
42 </rule>
43 <rule ref="Generic.Commenting">
44 <exclude-pattern>*/tests/*</exclude-pattern>
45 </rule>
46 <rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
47 <exclude-pattern>*/tests/*</exclude-pattern>
48 </rule>
49 <rule ref="WordPress.DB.PreparedSQL">
50 <exclude-pattern>*/tests/*</exclude-pattern>
51 </rule>
52 </ruleset>
53