-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
39 lines (33 loc) · 1.74 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Translation Manager">
<description>Translation Manager Rules</description>
<file>./src</file>
<exclude-pattern>./tests/</exclude-pattern>
<config name="testVersion" value="7.2"/>
<config name="ignore_warnings_on_exit" value="1"/>
<config name="text_domain" value="translationmanager"/>
<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"/>
<exclude name="NeutronStandard.Arrays.DisallowLongformArray.LongformArray"/>
<exclude name="Inpsyde.CodeQuality.StaticClosure"/>
</rule>
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.Interfaces.NewInterfaces.jsonserializableFound"/>
</rule>
<rule ref="PSR12">
<exclude name="PSR12.Files.OpenTag.NotAlone"/>
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
</rule>
</ruleset>