sameyasu/phpcs-added-lines

phpcs wrapper for filtering report based on diff text.

0.3.0 2021-09-07 08:01 UTC

This package is auto-updated.

Last update: 2024-05-07 14:44:02 UTC


README

This is phpcs wrapper for filtering report based on diff text.

  • Filters by added/modified line ranges.
  • JSON reporting only.

Test Status

Installation

$ composer require sameyasu/phpcs-added-lines

Usage

  • Checking unstaged changes based on PSR12 style
$ git diff | ./vendor/bin/phpcs-added-lines --basepath=$(pwd) --standard=PSR12