rogervila/php-sonarqube-scanner

Run SonarQube Scanner with composer

0.4.0 2019-09-19 12:10 UTC

This package is auto-updated.

Last update: 2019-12-13 09:29:43 UTC


README

Run SonarQube Scanner with composer

Latest Stable Version Total Downloads Build Status Build status

Test Project Badges Build Status

Run SonarQube Scanner with composer

Usage

Install the package as a dev requirement

composer require rogervila/php-sonarqube-scanner --dev

Run with composer

vendor/bin/sonar-scanner

Defaults

In some cases, if the package finds missing properties, it will provide them automatically.

Property Source Example
sonar.projectKey adapted composer.json name property -Dsonar.projectKey=rogervila_php-sonarqube-scanner
sonar.projectName adapted composer.json name property -Dsonar.projectName=php-sonarqube-scanner
sonar.sources Base project path -Dsonar.sources=<PROJECT PATH>
sonar.exclusions Opininated exclusions based on composer projects usage -Dsonar.exclusions="vendor/**, node_modules/**, .scannerwork/**"

License

This project is open-sourced software licensed under the MIT license.