Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 9c04b3b

Browse files
Add phpcs config
1 parent 8eafd2a commit 9c04b3b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
vendor
33
.php-cs-fixer.cache
4+
.phpcs-cache

.phpcs.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<ruleset
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
5+
6+
<arg name="basepath" value="."/>
7+
<arg name="cache" value=".phpcs-cache"/>
8+
<arg name="colors"/>
9+
<arg name="extensions" value="php"/>
10+
<arg name="parallel" value="80"/>
11+
12+
<!-- Show progress -->
13+
<arg value="p"/>
14+
15+
<!-- Paths to check -->
16+
<file>.</file>
17+
<exclude-pattern>vendor/*</exclude-pattern>
18+
19+
<!-- Include all rules from PSR-12 Coding Standard -->
20+
<rule ref="PSR12"/>
21+
</ruleset>

0 commit comments

Comments
 (0)