diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..7caec86 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,15 @@ +steps: + install-deps: + image: composer:2 + commands: + # Install dependencies without dev-interaction, ignoring platform reqs if using a generic image + - composer install --no-progress --no-interaction --prefer-dist + + phpcs: + image: php:8.4 + depends_on: + - install-deps + commands: + # Run PHPCS using the binary installed in ./vendor/bin/ + - ./vendor/bin/phpcs --standard=PSR12 src/ + diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..1233434 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,23 @@ + + + PHPCodeSniffer configuration for PHP code analysis. + + + src + + + + + + + + + + + */vendor/* + */node_modules/* + + + + +