Skip to content

Commit 438b50e

Browse files
committed
Add integration with SonarCloud
1 parent fe9c3fb commit 438b50e

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

.sonarcloud.properties

Lines changed: 0 additions & 10 deletions
This file was deleted.

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
language: go
22
sudo: false
3+
addons:
4+
sonarcloud:
5+
organization: "akamensky"
6+
token:
7+
secure: "UHOX/1aKjS292jywXbx4sWBaka1Bw7xJYAKRFo5wcadJMOBWVYmchNc5brAFkxsVpswnxmjnwtcGerjOV2t6Da5xUX3ST/p7REjKSSz5RmZ/Wa88z6g2PYlmoybqLAlgPmaBX+m5ZxGtaPo3joR+pUmjmUS2VF385UQLezuFbweSYZ90acBSr6kOw0xFQtc3UdW2NjUYM2ihmTCxFh0LwirZJnJCu0Zd1NQiaJOnvHp3nD83bU9PLaZbW308Kjl/cfIdEGf6CuzbeEILUoUqN9AAbAYFfr5HM28IPdzWRrp1krpb0P/OAmRMq18tLWx+AYmI2Y+Ud1AmqHZCNH5OqQYFU6XT7mkKT+Lh3ecNdcTKXRwQAiONj5EGHkbqi0q/kxWe/DEZOVJ51NjwHpjkKV1ByuAdWKXgXAwgftkQtw9+xkHrNSMgKonmcRXqcKy24jM9xOmwcbjMgh1dUoieerDv8midOJWVB538Cw6MH7f4j4ku8WC12YcDQElLoQFTuVjcAtYYGlXgVsfeXKi/I2fXwApKX0+O8ublWLgiNF7MljBHpbIffJCMD4APksIk7PwxYZzjdYJr4UgkLOTAyOH83BTVqVCANBQMLNP03UJIrtMzncB6J/b22ydw139GLx6a8tVdH6AtC2Y87CEWcvM/kA3OC9RK39MXP95tJKo="
38
go:
49
- "1.11"
510
- "1.12"
@@ -10,3 +15,4 @@ before_install:
1015
script:
1116
- go test -v .
1217
- $GOPATH/bin/goveralls -service=travis-ci
18+
- sonar-scanner

sonar-project.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sonar.projectKey=akamensky_argparse
2+
# this is the name and version displayed in the SonarCloud UI.
3+
sonar.projectName=argparse
4+
sonar.projectVersion=1.0
5+
6+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
7+
# This property is optional if sonar.modules is set.
8+
sonar.sources=.
9+
sonar.exclusions=examples/**
10+
11+
# Path to tests
12+
sonar.tests=.
13+
sonar.test.exclusions=examples/**
14+
15+
# Source encoding
16+
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)