-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
46 lines (38 loc) · 1.83 KB
/
phpcs.xml
File metadata and controls
46 lines (38 loc) · 1.83 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SansDaemon Custom Ruleset">
<!-- Check folders -->
<file>./src</file>
<file>./tests</file>
<config name="php_version" value="80000"/>
<config name="ignore_warnings_on_exit" value="1"/>
<arg name="basepath" value="."/> <!-- Strip file basepath from report -->
<arg name="colors"/>
<arg value="p"/><!-- Display progress in report -->
<arg value="s"/><!-- Display sniff codes in report -->
<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-spaces.xml" />
<!-- Add set of strict rules if needed -->
<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-strict.xml">
<!-- <exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/> -->
<exclude name="SlevomatCodingStandard.Files.FileLength.FileTooLong" />
<exclude name="SlevomatCodingStandard.Classes.ClassLength.ClassTooLong" />
<exclude name="SlevomatCodingStandard.Numbers.DisallowNumericLiteralSeparator.DisallowedNumericLiteralSeparator" />
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation">
<severity>5</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessAnnotation">
<severity>5</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation">
<severity>5</severity>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Resampler"/>
<element key="tests" value="Tests"/>
</property>
</properties>
</rule>
</ruleset>