Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Run SonarQube Scanner with composer

Latest Stable Version Total Downloads 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

If the package finds that there are missing properties, it will try provide them automatically from your project's composer.json file.

Property Source Example
sonar.projectKey adapted composer.json name property -Dsonar.projectKey=rogervila_php-sonarqube-scanner
sonar.projectDescription adapted composer.json description property -Dsonar.projectDescription="Run SonarQube Scanner with composer"
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.

About

Run SonarQube Scanner with composer

Resources

License

Packages

No packages published

Languages