Skip to content

Provides a Generic Issue Import Format report output for PHPCS, for use with tools such as Sonarqube

License

Notifications You must be signed in to change notification settings

nyeholt/phpcs-sonar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPCS Generic Issue Import Format reporter

AKA Sonarqube formatter for PHPCS reports output

This has been taken from code contributed by Marek freezy Víger (https://github.com/freezy-sk) on the PHP_CodeSniffer repository that was never merged in (squizlabs/PHP_CodeSniffer#2451). Have extracted for use in projects by adding this repository to your project, then running

Installation

Due to some composer installer constraints, you'll need to add the security audit module to your root level composer json so that aliasing works as expected;

composer require --dev dealerdirect/phpcodesniffer-composer-installer:"0.7.1 as 0.6.0" pheromone/phpcs-security-audit:dev-master

Usage

./vendor/bin/phpcs --standard=Security --report=./vendor/symbiote/phpcs-sonar/src/Sonar.php path/ > report-file.json

About

Provides a Generic Issue Import Format report output for PHPCS, for use with tools such as Sonarqube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages