chekalsky / phpcs-action

Github Action helps you check your code with PHP_CodeSniffer
MIT License
55 stars 29 forks source link
actions github-actions php php-codesniffer phpcs

PHP CodeSniffer GitHub Action

This action is deprecated in favor of much faster and better-supported solution, please update your Actions accordingly:

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    tools: cs2pr, phpcs

- name: Run phpcs
  run: phpcs -q --report=checkstyle src | cs2pr

Details here.

How Annotations Works

F