forked from keboola/php-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
35 lines (35 loc) · 1.9 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="Keboola">
<rule ref="PSR2" />
<exclude-pattern>vendor/</exclude-pattern>
<config name="installed_paths" value="vendor/slevomat/coding-standard/" />
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<!-- empty lines cannot be set up this way in phpstorm :/ -->
<exclude name="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces" />
<!-- FQCNs in annotations and exceptions don't add too much value -->
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword" />
<!-- Too extreme to allow using only of some namespaces -->
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" />
<!-- Requires further setup in regards to namespaces -->
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
<!-- We don't want to use yoda comparison -->
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
<properties>
<property name="usefulAnnotations" type="array" value="
@dataProvider
" />
</properties>
</rule>
</ruleset>