-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
31 lines (27 loc) · 1.03 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Just for running sonarqube task
plugins {
id "org.sonarqube" version "3.3"
}
sonarqube {
// If SonarQube running on except http://localhost:9000/,
// sonar.host.url should be defined in
// $HOME/.gradle/gradle.properties or
// $GRADLE_USER_HOME/.gradle/gradle.properties
// like below
// systemProp.sonar.host.url=http://sonarqube.example.com:9000
// https://docs.sonarqube.org/display/PLUG/SonarGo
properties {
property "sonar.projectName", "go-split"
property "sonar.projectVersion", "1.0.0"
property "sonar.go.coverage.reportPaths", "reports/coverage.out"
// SonarGo 1.1.0 requires $GOPATH.
// If the variable isn't set, SonarGo fails to find test code for root package.
property "sonar.go.tests.reportPaths", "reports/test.json"
property "sonar.sources", "."
// Exclude code generated by stringer.
property "sonar.exclusions", "**/*_test.go,**/*_string.go,**/vendor/**"
property "sonar.tests", "."
property "sonar.test.inclusions", "**/*_test.go"
property "sonar.test.exclusions", "**/vendor/**"
}
}