Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
44 lines (39 loc) · 2.16 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
44 lines (39 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<ruleset name="Mollie">
<description>Mollie</description>
<file>./inc</file>
<file>./src</file>
<exclude-pattern>./tests/</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.jsx</exclude-pattern>
<exclude-pattern>*.ts</exclude-pattern>
<exclude-pattern>*.tsx</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.scss</exclude-pattern>
<exclude-pattern>*.json</exclude-pattern>
<config name="testVersion" value="8.0"/>
<config name="ignore_warnings_on_exit" value="1"/>
<rule ref="Inpsyde">
<exclude name="NeutronStandard.StrictTypes.RequireStrictTypes.StrictTypes"/>
<exclude name="Inpsyde.CodeQuality.ReturnTypeDeclaration.NoReturnType"/>
<exclude name="Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="Inpsyde.CodeQuality.VariablesName.SnakeCaseVar"/>
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/>
<exclude name="Inpsyde.CodeQuality.NoAccessors.NoGetter"/>
<exclude name="Inpsyde.CodeQuality.NoAccessors.NoSetter"/>
<exclude name="Inpsyde.CodeQuality.ElementNameMinimalLength.TooShort"/>
<exclude name="Inpsyde.CodeQuality.LineLength.TooLong"/>
<exclude name="Inpsyde.CodeQuality.NoElse.ElseFound"/>
<exclude name="Inpsyde.CodeQuality.FunctionLength.TooLong"/>
<exclude name="Generic.Metrics.NestingLevel.TooHigh"/>
</rule>
<!-- Rules/ folders and src/Shared/Values may not call WordPress (PureRulesTest), so they cannot use
esc_html(). Their exceptions report invalid arguments to the calling code; escaping is the job of
whatever outputs them. IdempotencyKey had the same exemption under src/Core and keeps it in src/SDK. -->
<rule ref="WordPress.Security.EscapeOutput.ExceptionNotEscaped">
<exclude-pattern>./src/*/Rules/*</exclude-pattern>
<exclude-pattern>./src/Shared/Values/*</exclude-pattern>
<exclude-pattern>./src/SDK/IdempotencyKey.php</exclude-pattern>
</rule>
</ruleset>