prints additional PhpStorm editor url in PHPCS cli output.
$ composer require --dev wickedone/phpcs-reporter
specify this report on the command line:
$ php vendor/bin/phpcs --report='WickedOne\PHPCSReport\PhpStormReport'
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.