From 74c7e694d95dfde1876b2e21a6f12205a6ea659d Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Sat, 12 Jul 2025 17:45:23 -0400 Subject: [PATCH] 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 --- phpcs.xml.dist | 26 ++++++++++++++++++++++++++ phpstan.neon.dist | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 phpcs.xml.dist create mode 100644 phpstan.neon.dist diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..8a785e10 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,26 @@ + + + PSR-12 coding standards for PHP AI Client SDK + + + src + tests + + + */vendor/* + + + + + + + + + + + + + + + + diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 00000000..776ccd86 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,4 @@ +parameters: + level: max + paths: + - src