Skip to content

Commit bb6b1c5

Browse files
committed
Add PHPStan and PHP CodeSniffer configuration
- Add phpstan.neon.dist with max level analysis - Add phpcs.xml.dist with PSR-12 coding standards - Configure both tools to scan src/ and tests/ directories - Set up parallel processing and colored output for phpcs
1 parent 0d8be44 commit bb6b1c5

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

phpcs.xml.dist

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PHP AI Client Coding Standards">
3+
<description>PSR-12 coding standards for PHP AI Client SDK</description>
4+
5+
<!-- Scan these files -->
6+
<file>src</file>
7+
<file>tests</file>
8+
9+
<!-- Ignore vendor directory -->
10+
<exclude-pattern>*/vendor/*</exclude-pattern>
11+
12+
<!-- Use PSR-12 standard -->
13+
<rule ref="PSR12"/>
14+
15+
<!-- Show progress, show sniff codes in all reports -->
16+
<arg value="sp"/>
17+
18+
<!-- Set minimum supported PHP version -->
19+
<config name="testVersion" value="7.4-"/>
20+
21+
<!-- Enable colors in output -->
22+
<arg name="colors"/>
23+
24+
<!-- Check PHP syntax -->
25+
<arg name="parallel" value="8"/>
26+
</ruleset>

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src

0 commit comments

Comments
 (0)