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@dce4b309be18ab9119cdde589f637ee432986719Entrypoint
Return Type
Sonarqube Example
dagger -m github.com/act3-ai/dagger/sonarqube@dce4b309be18ab9119cdde589f637ee432986719 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@dce4b309be18ab9119cdde589f637ee432986719 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@dce4b309be18ab9119cdde589f637ee432986719 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()
}