-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
29 lines (24 loc) · 831 Bytes
/
phpcs.xml
File metadata and controls
29 lines (24 loc) · 831 Bytes
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
<?xml version="1.0"?>
<ruleset name="LaravelModelSchemaChecker">
<description>PHP CodeSniffer rules for Laravel Model Schema Checker</description>
<!-- Use PSR-12 as base -->
<rule ref="PSR12">
<exclude name="PSR12.Files.FileHeader"/>
<exclude name="PSR12.Operators.OperatorSpacing"/>
</rule>
<!-- Additional rules -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
</properties>
</rule>
<!-- Exclude test files from some rules -->
<rule ref="PSR12.Files.FileHeader">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Files to check -->
<file>src/</file>
<file>tests/</file>
<!-- Exclude vendor directory -->
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>