diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index cd7b5460..e776f528 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,7 +17,7 @@ jobs: run: composer install --prefer-dist --no-progress --no-suggest - name: Run code sniffer - run: vendor/bin/phpcs + run: vendor/bin/phpcs --ignore=./src/Core/Logger/compatibility/*.php - name: Run test suite run: vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/Makefile b/Makefile index ca2df452..b55ab858 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,12 @@ install: composer install lint: - php vendor/bin/phpcs -n + php vendor/bin/phpcs --ignore=./src/Core/Logger/compatibility/*.php -n compatible: php vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility php vendor/bin/phpcs --config-set testVersion 5.6 - php vendor/bin/phpcs -p --standard=PHPCompatibility src + php vendor/bin/phpcs -p --standard=PHPCompatibility --ignore=./src/Core/Logger/compatibility/*.php src fmt: php vendor/bin/phpcbf