PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.3.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.3.0
3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 All 194 releases
convertkit / phpcs.tests.xml

phpcs.tests.xml in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 2.3.0, at phpcs.tests.xml

58 lines 3.1 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
3 <description>Coding Standards for Tests</description>
4
5 <!-- Inspect files in the /tests folder -->
6 <file>tests</file>
7
8 <!-- Run in verbose mode and specify the precise rule that failed in output -->
9 <arg value="sv"/>
10 <arg name="colors"/>
11
12 <!-- Check that code meets WordPress-Extra standards. -->
13 <rule ref="WordPress-Extra">
14 <!-- Don't use yoda conditions -->
15 <exclude name="WordPress.PHP.YodaConditions" />
16
17 <!-- File and variable naming conventions in Codeception differ from WordPress -->
18 <exclude name="WordPress.NamingConventions" />
19 <exclude name="WordPress.Files.FileName" />
20
21 <!-- Class and function braces and spacing in Codeceptoin differs from WordPress -->
22 <exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" />
23 <exclude name="WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis" />
24 <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen" />
25 <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose" />
26 <exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis" />
27 <exclude name="Generic.Classes.OpeningBraceSameLine.BraceOnNewLine" />
28 <exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine" />
29 <exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket" />
30 <exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
31 <exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket" />
32 <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction" />
33
34 <!-- _before() and _passed() must use underscores in Codeception -->
35 <exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
36
37 <!-- Permit [] instead of array() -->
38 <exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
39
40 <!-- We might use some datetime functions for tests -->
41 <exclude name="WordPress.DateTime.RestrictedFunctions" />
42
43 <!-- Handles false positives where Coding Standards thinks we did something wrong when we're just checking for e.g. a stylesheet -->
44 <exclude name="WordPress.WP.EnqueuedResources" />
45 <exclude name="WordPress.PHP.DiscouragedPHPFunctions" />
46 <exclude name="WordPress.WP.CapitalPDangit.MisspelledInText" />
47 </rule>
48
49 <!-- Check that code is documented to WordPress Standards. -->
50 <rule ref="WordPress-Docs">
51 <!-- File document level comments are useless for tests; we know what a test suite does -->
52 <exclude name="Squiz.Commenting.FileComment.Missing" />
53 </rule>
54
55 <!-- Add in some extra rules from other standards. -->
56 <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
57 <rule ref="Generic.Commenting.Todo"/>
58 </ruleset>