diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7733603c..2ff07e4f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -191,44 +191,6 @@ jobs: - name: Validation of coding standards for PHP files run: composer ci:php:cs - php_sniff: - name: PHP Code Sniffer - needs: - - php_lint - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.2' - tools: composer:2 - - - name: Get Composer Cache Directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache Composer dependencies - uses: actions/cache@v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-latest-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer-latest- - ${{ runner.os }}-composer- - - - name: Setup authentication for Composer - run: composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} - - - name: Install dependencies - run: composer install --prefer-dist --ansi --no-interaction --no-progress - - - name: Validation of coding standards - run: composer ci:php:sniff - php_stan: name: PHP Stan needs: diff --git a/composer.json b/composer.json index 4eec4c8d..0c26b548 100644 --- a/composer.json +++ b/composer.json @@ -197,12 +197,10 @@ "ci:php": [ "@ci:php:lint", "@ci:php:cs-fixer", - "@ci:php:sniff", "@ci:php:stan" ], "ci:php:cs-fixer": "@php php-cs-fixer fix -v --dry-run --diff", "ci:php:lint": "@php phplint --no-progress", - "ci:php:sniff": "@php phpcs --standard=PSR12 src tests || true", "ci:php:stan": "@php phpstan analyse --no-progress", "ci:static": [ "@ci:json:lint", @@ -226,7 +224,6 @@ "@fix:php:cs-fixer" ], "fix:php:cs-fixer": "@php php-cs-fixer fix", - "fix:php:sniff": "phpcbf src", "satis:install": [ "rm -fr satis", "@composer create-project --stability=dev --ansi composer/satis satis" diff --git a/tools/phpcs/composer.json b/tools/phpcs/composer.json deleted file mode 100644 index 5f0b1a4f..00000000 --- a/tools/phpcs/composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require": { - "squizlabs/php_codesniffer": "*" - } -}