-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
31 lines (23 loc) · 1.01 KB
/
phpcs.xml
File metadata and controls
31 lines (23 loc) · 1.01 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="Calvert PHP DnD Errors"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>PHP CodeSniffer configuration for PHP DnD Errors</description>
<!-- Directories to check -->
<file>src</file>
<file>demo.php</file>
<!-- Exclude vendor directory -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Use PSR-12 standard -->
<rule ref="PSR12"/>
<!-- Show progress -->
<arg value="p"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<!-- Show warnings as well as errors -->
<arg name="warning-severity" value="0"/>
<!-- Allow Windows line endings during development -->
<!-- Note: For production/library code, Unix line endings (\n) are recommended -->
<!-- You can auto-fix line endings with: composer phpcbf -->
</ruleset>