Skip to content

Add "no_unused_imports" rule to PHP CS Fixer configuration (#5) #17

Add "no_unused_imports" rule to PHP CS Fixer configuration (#5)

Add "no_unused_imports" rule to PHP CS Fixer configuration (#5) #17

Workflow file for this run

name: static analysis
on:
pull_request:
push:
branches:
- master
jobs:
mutation:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
php:
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php }}
tools: cs2pr
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Static analysis
run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle --php-version=${{ matrix.php }} | cs2pr --graceful-warnings --colorize