-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
38 lines (32 loc) · 1.19 KB
/
Copy pathphpcs.xml
File metadata and controls
38 lines (32 loc) · 1.19 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
name="Slope DevTalks"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<config name="ignore_warnings_on_exit" value="1"/>
<!-- Display progress bar -->
<arg value="p"/>
<arg name="basepath" value="."/>
<arg name="cache" value="var/.phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>src/</file>
<file>tests/</file>
<rule ref="PSR1"/>
<rule ref="PSR2"/>
<rule ref="PSR12">
<exclude name="PSR12.Files.FileHeader" />
</rule>
<!-- Re-configure rules -->
<rule ref="PSR1.Methods.CamelCapsMethodName">
<!-- Underscores in tests method names are allowed for improved readability -->
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<!-- Additional rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Classes.ValidClassName"/>
</ruleset>