PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.1.0
GenerateBlocks v1.1.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / phpcs.xml
generateblocks Last commit date
assets 5 years ago dist 5 years ago includes 5 years ago src 5 years ago phpcs.xml 6 years ago plugin.php 5 years ago readme.txt 5 years ago
phpcs.xml
50 lines
1 <?xml version="1.0"?>
2 <ruleset name="GenerateBlocks">
3 <description>Rules for GenerateBlocks</description>
4
5 <arg name="extensions" value="php" />
6
7 <exclude-pattern>*/vendor/*</exclude-pattern>
8 <exclude-pattern>*/node_modules/*</exclude-pattern>
9 <exclude-pattern>*/wordpress*/*</exclude-pattern>
10
11 <!-- Include the WordPress-Extra standard. -->
12 <rule ref="WordPress-Extra">
13 <!--
14 We may want a middle ground though. The best way to do this is add the
15 entire ruleset, then rule by rule, remove ones that don't suit a project.
16 We can do this by running `phpcs` with the '-s' flag, which allows us to
17 see the names of the sniffs reporting errors.
18 Once we know the sniff names, we can opt to exclude sniffs which don't
19 suit our project like so.
20 -->
21 <exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
22 <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
23 <exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"/>
24 <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned"/>
25 <exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict"/>
26 <exclude name="Generic.Files.LineEndings" />
27 <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
28 </rule>
29
30 <!-- Let's also check that everything is properly documented. -->
31 <rule ref="WordPress-Docs"/>
32
33 <config name="minimum_supported_wp_version" value="5.0.0"/>
34
35 <rule ref="WordPress.WP.I18n">
36 <properties>
37 <property name="text_domain" value="generateblocks"/>
38 </properties>
39 </rule>
40
41 <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
42 <properties>
43 <property name="prefixes" type="array">
44 <element value="generateblocks"/>
45 </property>
46 </properties>
47 </rule>
48
49 </ruleset>
50