Skip to content

wickedOne/phpcs-reporter

Repository files navigation

PHP CodeSniffer PhpStorm reporter

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.

About

PHP CodeSniffer report which adds a PhpStorm editor url to your violations

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages