Skip to content
zap

GitHub Action

PHP_CodeSniffer Check with Annotations

v1.2.0 Latest version

PHP_CodeSniffer Check with Annotations

zap

PHP_CodeSniffer Check with Annotations

PHPCS checker with auto annotations out of the box

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PHP_CodeSniffer Check with Annotations

uses: chekalsky/phpcs-action@v1.2.0

Learn more about this action in chekalsky/phpcs-action

Choose a version

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