Skip to content

Commit

Permalink
[TASK] Drop php code sniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Nov 21, 2024
1 parent 87a6b90 commit bbde14b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions tools/phpcs/composer.json

This file was deleted.

0 comments on commit bbde14b

Please sign in to comment.