PluginProbe
WPB Addons for Elementor – News Ticker, Timeline, Team & More Widgets / 1.5
WPB Addons for Elementor – News Ticker, Timeline, Team & More Widgets v1.5
trunk 1.0.8.7 1.0.8.8 1.0.8.9 1.0.9 1.2 1.3 1.4 1.5 1.6 1.7
wpb-elementor-addons / phpcs.xml

phpcs.xml in WPB Addons for Elementor – News Ticker, Timeline, Team & More Widgets 1.5, at phpcs.xml

73 lines 2.2 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 WPB Elementor Addons">
3
4 <rule ref="WordPress-Core">
5 <exclude name="Generic.Arrays.DisallowShortArraySyntax" />
6 <exclude name="Generic.Commenting.DocComment.MissingShort" />
7 <exclude name="Squiz.Commenting.FileComment.Missing" />
8 <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
9 <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
10 </rule>
11
12 <rule ref="WordPress-Docs">
13 <exclude-pattern>tests/*</exclude-pattern>
14 </rule>
15 <rule ref="WordPress-Extra" />
16
17 <rule ref="WordPress.WP.I18n">
18 <properties>
19 <property name="text_domain" type="array">
20 <element value="wpb-elementor-addons"/>
21 <element value="default"/>
22 </property>
23 </properties>
24 </rule>
25
26 <rule ref="WordPress.Files.FileName.InvalidClassFileName">
27 <exclude-pattern>tests/*</exclude-pattern>
28 <exclude-pattern>src/*</exclude-pattern>
29 </rule>
30
31 <rule ref="WordPress.WP.GlobalVariablesOverride.Prohibited">
32 <exclude-pattern>tests/*</exclude-pattern>
33 </rule>
34 <rule ref="WordPress.WP.AlternativeFunctions">
35 <exclude-pattern>bin/*</exclude-pattern>
36 </rule>
37 <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
38 <exclude-pattern>src/*</exclude-pattern>
39 </rule>
40
41 <!-- Enforce PascalCase file names in src/ only. -->
42 <rule ref="Squiz.Classes.ClassFileName">
43 <include-pattern>src/*</include-pattern>
44 </rule>
45
46 <!-- Allow NotHyphenatedLowercase for TestCase class -->
47 <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
48 <exclude-pattern>tests/php/TestCase.php</exclude-pattern>
49 <exclude-pattern>tests/php/DataProvider.php</exclude-pattern>
50 </rule>
51
52 <!-- Limit max. consecutive blank lines to 1 instead of 2. -->
53 <rule ref="Squiz.WhiteSpace.FunctionSpacing">
54 <properties>
55 <property name="spacing" value="1"/>
56 <property name="spacingBeforeFirst" value="1"/>
57 <property name="spacingAfterLast" value="0"/>
58 </properties>
59 </rule>
60
61 <arg value="s"/>
62 <arg name="extensions" value="php"/>
63 <file>.</file>
64
65 <!-- Strip the filepaths down to the relevant bit. -->
66 <arg name="basepath" value="./"/>
67
68 <!-- Check up to 20 files simultaneously. -->
69 <arg name="parallel" value="20"/>
70
71 <exclude-pattern>*/vendor/*</exclude-pattern>
72
73 </ruleset>