-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpcs.xml.dist
36 lines (31 loc) · 1.18 KB
/
phpcs.xml.dist
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
<?xml version="1.0" ?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="codeception-psalm-module">
<!-- display progress -->
<arg value="p" />
<arg name="colors" />
<!-- Paths to check -->
<file>src</file>
<!-- inherit rules from: -->
<rule ref="PSR12">
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Files.ByteOrderMark" />
<rule ref="Generic.Files.LineEndings" />
<rule ref="Generic.Files.LineLength">
<properties>
<property name="absoluteLineLimit" value="120" /> <!-- even though psr-2 specifies it as soft-limit only -->
</properties>
</rule>
<rule ref="Generic.PHP.DeprecatedFunctions" />
<rule ref="Generic.PHP.ForbiddenFunctions" />
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false" />
</properties>
</rule>
</ruleset>