wickedone / phpcs-reporter
PHP Codesniffer output with phpstorm editor url
Installs: 7 283
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 3
Requires
- php: ~8.1.0 || ~8.2.0
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-18 11:46:00 UTC
README
prints additional PhpStorm editor url in PHPCS cli output.
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.