wickedone/phpcs-reporter

PHP Codesniffer output with phpstorm editor url

2.0.0 2022-12-29 04:57 UTC

This package is auto-updated.

Last update: 2024-10-18 11:46:00 UTC


README

prints additional PhpStorm editor url in PHPCS cli output.

Latest Stable Version Total Downloads License PHP Version Require

installation

$ composer require --dev wickedone/phpcs-reporter

command line usage:

specify this report on the command line:

$ php vendor/bin/phpcs --report='WickedOne\PHPCSReport\PhpStormReport'

phpcs xml configuration

specify this report in your phpcs.xml.dist:

<?xml version="1.0" encoding="UTF-8"?>

<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">

    <arg name="report" value="WickedOne\PHPCSReport\PhpStormReport" />
    ...

NOTE: if one file has multiple violations, the editor link will direct you to the file itself rather than the correct line. use ctrl + l to jump to the correct line in these situations.