-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
38 lines (31 loc) · 1.22 KB
/
phpcs.xml
File metadata and controls
38 lines (31 loc) · 1.22 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"?>
<ruleset name="CodeIgniter 4 Settings Library Standard">
<description>
Coding standard for the CI4 Settings / Feature Flag library.
Applies PSR-12 to src/ and tests/ while ignoring vendor and build artifacts.
</description>
<!-- Directories to scan -->
<file>src</file>
<file>tests</file>
<!-- Exclusions -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>var/*</exclude-pattern>
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>.phpunit.cache/*</exclude-pattern>
<exclude-pattern>.phpstan/*</exclude-pattern>
<!-- Global options -->
<arg name="colors"/>
<arg name="encoding" value="utf-8"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="4"/>
<!-- Base standard -->
<rule ref="PSR12">
<!-- Optional relaxations: -->
<!-- Ignore long lines (useful for long arrays, SQL, etc.) -->
<exclude name="Generic.Files.LineLength.TooLong"/>
<!-- Allow tabs in indentation -->
<!-- <exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/> -->
</rule>
<!-- Extra generic rules (optional) -->
<rule ref="Generic.Commenting.Todo"/>
</ruleset>