-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
62 lines (50 loc) · 2.27 KB
/
phpcs.xml
File metadata and controls
62 lines (50 loc) · 2.27 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<ruleset name="PhPgSql">
<rule ref="./vendor/forrest79/phpcs/Forrest79CodingStandard/ruleset.xml">
<exclude name="SlevomatCodingStandard.TypeHints.ClassConstantTypeHint.MissingNativeTypeHint"/><!-- PHP 8.3+ -->
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Forrest79\PhpCsIgnores"/>
<element key="tests" value="Forrest79\PhpCsIgnores\Tests"/>
</property>
</properties>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>src/PhpCsInjections.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty.ForbiddenPublicProperty">
<exclude-pattern>src/PhpCsInjections.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Functions.DisallowArrowFunction.DisallowedArrowFunction">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter">
<exclude-pattern>src/BaselineReport.php</exclude-pattern>
<exclude-pattern>src/PhpCsInjections.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
<exclude-pattern>src/BaselineReport.php</exclude-pattern>
<exclude-pattern>src/File.php</exclude-pattern>
<exclude-pattern>src/PhpCsInjections.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
<exclude-pattern>src/PhpCsInjections.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.Heredoc.NotAllowed">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.Heredoc.NotAllowed">
<exclude-pattern>tests/run-tests.php</exclude-pattern>
</rule>
</ruleset>