Skip to content

Commit 1427fe6

Browse files
authored
Merge pull request akamensky#43 from akamensky/add-sonar-analysis
Add sonar analysis
2 parents 7f345bc + 0692c82 commit 1427fe6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
# Source encoding
12+
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)