-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.example.xml
42 lines (35 loc) · 1.79 KB
/
phpcs.example.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
39
40
41
42
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SunOutdoor App Custom Ruleset">
<!-- Check folders -->
<file>./app</file>
<config name="php_version" value="80000"/> <!-- Set target version, for 7.4 set to 70400 etc. -->
<!-- Uncomment to keep exit code equals to 0 on warnings -->
<!-- <config name="ignore_warnings_on_exit" value="1"/> -->
<arg name="basepath" value="."/> <!-- Strip file basepath from report -->
<arg name="colors"/> <!-- Show colors -->
<arg value="p"/> <!-- Display progress in report -->
<arg value="s"/> <!-- Display sniff codes in report -->
<!-- Or include phpcs-tabs.xml for tabs indentation -->
<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-spaces.xml">
<!-- Optionally exclude some rules -->
<exclude name="Generic.Files.LineLength.MaxExceeded"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions.NonFullyQualified"/>
<!-- trailing comma in function call is supported in PHP 7.3 and above, exclude if needed -->
<exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
</rule>
<!-- Add set of strict rules if needed -->
<!--
<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-strict.xml">
</rule>
-->
<!-- Bring back Useless Annotation errors, which are normally ignored -->
<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>
</ruleset>