Skip to content

Add PHPCS.

Add PHPCS. #40

Workflow file for this run

name: Drupal coding standards
on: pull_request
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@verbose
with:
php-version: 8.3
coverage: none
tools: composer:v2, cs2pr, dealerdirect/phpcodesniffer-composer-installer:*, drupal/coder
- name: Detect coding standard violations
run: phpcs -q --report=checkstyle | cs2pr