-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
38 lines (33 loc) · 1.48 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
36
37
38
<?xml version="1.0"?>
<ruleset
name="Niltok"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg value="p"/>
<file>src</file>
<file>tests</file>
<rule ref="Doctrine">
<!-- Remove object-oriented programming rules that are incompatible with functional programming paradigm -->
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>
<exclude name="Squiz.Functions.GlobalFunction"/>
<!-- Keep it closer to Kotlin standards -->
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR12.Files.OpenTag.NotAlone"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="true" />
<property name="linesCountAfterDeclare" value="1" />
</properties>
</rule>
</ruleset>