sonarqube
This module will start a sonar server as a service,run a scan with sonar-scanner CLI with a given source directory,
and return a json report of any issues found.
Installation
dagger install github.com/act3-ai/dagger/sonarqube@v0.0.1Entrypoint
Return Type
Sonarqube Example
dagger -m github.com/act3-ai/dagger/sonarqube@3f84fbb383e7efa69042de71ab2e0b2d1ef2272f call \
func (m *MyModule) Example() *dagger.Sonarqube {
return dag.
Sonarqube()
}@function
def example() -> dagger.Sonarqube:
return (
dag.sonarqube()
)@func()
example(): Sonarqube {
return dag
.sonarqube()
}Types
Sonarqube 🔗
scan() 🔗
scan a source directory with sonar-scanner and get a report from sonar-server
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| impactSeverities | String | "MEDIUM,HIGH" | comma separated list of impact severities to use when generating report |
Example
dagger -m github.com/act3-ai/dagger/sonarqube@3f84fbb383e7efa69042de71ab2e0b2d1ef2272f call \
scanfunc (m *MyModule) Example() *dagger.File {
return dag.
Sonarqube().
Scan()
}@function
def example() -> dagger.File:
return (
dag.sonarqube()
.scan()
)@func()
example(): File {
return dag
.sonarqube()
.scan()
}service() 🔗
start up sonar-server as a service
Return Type
Service ! Example
dagger -m github.com/act3-ai/dagger/sonarqube@3f84fbb383e7efa69042de71ab2e0b2d1ef2272f call \
servicefunc (m *MyModule) Example() *dagger.Service {
return dag.
Sonarqube().
Service()
}@function
def example() -> dagger.Service:
return (
dag.sonarqube()
.service()
)@func()
example(): Service {
return dag
.sonarqube()
.service()
}