SonarSource / sonar-go-archived

SonarGo: Go Analyzer for SonarQube
https://docs.sonarqube.org/display/PLUG/SonarGo
Other
120 stars 24 forks source link

"Failed to find test file" #361

Closed echarrod closed 5 years ago

echarrod commented 5 years ago

Description

Sonar scanning seems to not find the test files, but I can't work out why. There is some coverage, so I'm not sure where this is from.

I get line-rate="0.6259947" in coverage.xml, so it looks like that is getting the coverage right, but the sonar report is only showing about half that much. image

Steps to Reproduce

docker pull sonarqube
docker run --rm -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube

go get -u github.com/jstemmer/go-junit-report
go get github.com/axw/gocov/gocov
go get github.com/AlekSi/gocov-xml

Git clone git@github.com:getyoti/yoti-go-sdk.git
git checkout Sonar
go test -v ./... | go-junit-report > test.xml
go test -coverprofile=coverage.out -json > sonar-report.json
gocov convert coverage.out | gocov-xml > coverage.xml
sonar-scanner -X

Content of your sonar-project.properties

sonar.projectKey = yoti-web-sdk:go
sonar.projectName = go-sdk
sonar.projectVersion = 2.4.0
sonar.sources=./
sonar.sources.inclusions=**/**.go
sonar.exclusions = **/yotiprotoattr/*.go,**/yotiprotocom/*.go
sonar.links.scm = https://github.com/getyoti/yoti-go-sdk

sonar.go.coverage.reportPaths = coverage.out
sonar.go.tests.reportPaths = sonar-report.json
sonar.tests = ./
sonar.test.reportPath=./test.xml
sonar.test.inclusions=**/**_test.go

Log of sonar-scanner related to the plugin

> sonar-scanner -X
12:59:58.039 INFO: Scanner configuration file: C:\Program Files\sonar-scanner-cli-3.3.0.1492-windows\sonar-scanner-3.3.0.1492-windows\bin\..\conf\sonar-scanner.properties
12:59:58.050 INFO: Project root configuration file: C:\Users\my.username\source\repos\go\sonar-project.properties
12:59:58.090 INFO: SonarQube Scanner 3.3.0.1492
12:59:58.091 INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
12:59:58.091 INFO: Windows 10 10.0 amd64
12:59:58.346 DEBUG: keyStore is :
12:59:58.348 DEBUG: keyStore type is : jks
12:59:58.348 DEBUG: keyStore provider is :
12:59:58.349 DEBUG: init keystore
12:59:58.351 DEBUG: init keymanager of type SunX509
12:59:59.635 DEBUG: Create: C:\Users\my.username\.sonar\cache
12:59:59.653 INFO: User cache: C:\Users\my.username\.sonar\cache
12:59:59.658 DEBUG: Create: C:\Users\my.username\.sonar\cache\_tmp
12:59:59.664 DEBUG: Extract sonar-scanner-api-batch in temp...
12:59:59.678 DEBUG: Get bootstrap index...
12:59:59.679 DEBUG: Download: http://localhost:9000/batch/index
12:59:59.904 DEBUG: Get bootstrap completed
13:00:00.078 DEBUG: Create isolated classloader...
13:00:00.107 DEBUG: Start temp cleaning...
13:00:00.128 DEBUG: Temp cleaning done
13:00:00.134 DEBUG: Execution getVersion
13:00:00.143 INFO: SonarQube server 7.7.0
13:00:00.150 INFO: Default locale: "en_GB", source code encoding: "windows-1252" (analysis is platform dependent)
13:00:00.151 DEBUG: Work directory: C:\Users\my.username\source\repos\go\.scannerwork
13:00:00.155 DEBUG: Execution execute
13:00:02.441 INFO: Load global settings
13:00:02.687 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=231ms
13:00:02.748 INFO: Load global settings (done) | time=310ms
13:00:02.776 INFO: Server id: BF41A1F2-AWnjC0DP3bdKF5H28mQE
13:00:02.817 INFO: User cache: C:\Users\my.username\.sonar\cache
13:00:02.824 INFO: Load/download plugins
13:00:02.824 INFO: Load plugins index
13:00:02.887 DEBUG: GET 200 http://localhost:9000/api/plugins/installed | time=61ms
13:00:02.956 INFO: Load plugins index (done) | time=132ms
13:00:03.509 INFO: Load/download plugins (done) | time=685ms
13:00:03.609 DEBUG: Plugins:
13:00:03.610 DEBUG:   * SonarPython 1.13.0.2922 (python)
13:00:03.610 DEBUG:   * SonarCSS 1.0.3.724 (cssfamily)
13:00:03.611 DEBUG:   * JaCoCo 1.0.1.143 (jacoco)
13:00:03.611 DEBUG:   * SonarGo 1.1.0.1612 (go)
13:00:03.612 DEBUG:   * SonarKotlin 1.5.0.315 (kotlin)
13:00:03.612 DEBUG:   * Svn 1.9.0.1295 (scmsvn)
13:00:03.614 DEBUG:   * SonarJS 5.1.1.7506 (javascript)
13:00:03.615 DEBUG:   * SonarRuby 1.5.0.315 (ruby)
13:00:03.616 DEBUG:   * SonarScala 1.5.0.315 (sonarscala)
13:00:03.617 DEBUG:   * SonarC# 7.11.0.8083 (csharp)
13:00:03.618 DEBUG:   * SonarJava 5.11.0.17289 (java)
13:00:03.619 DEBUG:   * LDAP 2.2.0.608 (ldap)
13:00:03.620 DEBUG:   * SonarHTML 3.1.0.1615 (web)
13:00:03.620 DEBUG:   * Git 1.8.0.1574 (scmgit)
13:00:03.623 DEBUG:   * SonarFlex 2.4.0.1222 (flex)
13:00:03.623 DEBUG:   * SonarXML 2.0.1.2020 (xml)
13:00:03.624 DEBUG:   * SonarPHP 3.0.0.4537 (php)
13:00:03.625 DEBUG:   * SonarTS 1.9.0.3766 (typescript)
13:00:03.626 DEBUG:   * SonarVB 7.11.0.8083 (vbnet)
13:00:04.319 INFO: Process project properties
13:00:04.330 DEBUG: Process project properties (done) | time=11ms
13:00:04.331 INFO: Execute project builders
13:00:04.332 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
13:00:04.336 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
13:00:04.340 INFO: Execute project builders (done) | time=9ms
13:00:04.350 INFO: Project key: yoti-web-sdk:go
13:00:04.351 INFO: Base dir: C:\Users\my.username\source\repos\go
13:00:04.351 INFO: Working dir: C:\Users\my.username\source\repos\go\.scannerwork
13:00:04.353 DEBUG: Project global encoding: windows-1252, default locale: en_GB
13:00:04.359 DEBUG: Creating module hierarchy
13:00:04.359 DEBUG:   Init module 'go-sdk'
13:00:04.363 DEBUG:     Base dir: C:\Users\my.username\source\repos\go
13:00:04.363 DEBUG:     Working dir: C:\Users\my.username\source\repos\go\.scannerwork
13:00:04.364 DEBUG:     Module global encoding: windows-1252, default locale: en_GB
13:00:04.388 INFO: Load project settings for component key: 'yoti-web-sdk:go'
13:00:04.401 DEBUG: GET 404 http://localhost:9000/api/settings/values.protobuf?component=yoti-web-sdk%3Ago | time=13ms
13:00:04.456 DEBUG: Available languages:
13:00:04.458 DEBUG:   * Python => "py"
13:00:04.459 DEBUG:   * CSS => "css"
13:00:04.460 DEBUG:   * Go => "go"
13:00:04.460 DEBUG:   * Kotlin => "kotlin"
13:00:04.461 DEBUG:   * JavaScript => "js"
13:00:04.462 DEBUG:   * Ruby => "ruby"
13:00:04.465 DEBUG:   * Scala => "scala"
13:00:04.469 DEBUG:   * C# => "cs"
13:00:04.476 DEBUG:   * Java => "java"
13:00:04.487 DEBUG:   * HTML => "web"
13:00:04.488 DEBUG:   * JSP => "jsp"
13:00:04.491 DEBUG:   * Flex => "flex"
13:00:04.491 DEBUG:   * XML => "xml"
13:00:04.493 DEBUG:   * PHP => "php"
13:00:04.497 DEBUG:   * TypeScript => "ts"
13:00:04.500 DEBUG:   * VB.NET => "vbnet"
13:00:04.519 INFO: Load project repositories
13:00:04.530 DEBUG: GET 404 http://localhost:9000/batch/project.protobuf?key=yoti-web-sdk%3Ago | time=10ms
13:00:04.532 DEBUG: Project repository not available - continuing without it
13:00:04.534 INFO: Load project repositories (done) | time=15ms
13:00:04.534 INFO: Load quality profiles
13:00:04.681 DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?defaults=true | time=144ms
13:00:04.696 INFO: Load quality profiles (done) | time=162ms
13:00:04.729 INFO: Load active rules
13:00:05.707 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC-1K3bdKF5H28nor&p=1&ps=500 | time=977ms
13:00:06.068 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC-4R3bdKF5H28nph&p=1&ps=500 | time=256ms
13:00:06.109 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC-583bdKF5H28nqA&p=1&ps=500 | time=35ms
13:00:06.419 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC-8Y3bdKF5H28nrf&p=1&ps=500 | time=309ms
13:00:06.645 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC-6Y3bdKF5H28nqh&p=1&ps=500 | time=221ms
13:00:07.022 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_Ef3bdKF5H28nyH&p=1&ps=500 | time=370ms
13:00:07.207 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_Gs3bdKF5H28n0a&p=1&ps=500 | time=162ms
13:00:07.396 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_IT3bdKF5H28n1k&p=1&ps=500 | time=181ms
13:00:08.071 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_Lc3bdKF5H28n5y&p=1&ps=500 | time=671ms
13:00:08.895 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_Qf3bdKF5H28oDd&p=1&ps=500 | time=787ms
13:00:09.121 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_c73bdKF5H28oJs&p=1&ps=500 | time=200ms
13:00:09.289 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_iS3bdKF5H28oKu&p=1&ps=500 | time=166ms
13:00:09.370 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_k43bdKF5H28oLi&p=1&ps=500 | time=74ms
13:00:09.686 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_rI3bdKF5H28oOt&p=1&ps=500 | time=314ms
13:00:09.936 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_wf3bdKF5H28oSB&p=1&ps=500 | time=236ms
13:00:10.192 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AWnjC_0U3bdKF5H28oUi&p=1&ps=500 | time=250ms
13:00:10.206 INFO: Load active rules (done) | time=5477ms
13:00:10.341 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
13:00:10.354 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
13:00:10.354 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
13:00:10.355 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
13:00:10.356 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.vue
13:00:10.357 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
13:00:10.357 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
13:00:10.376 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
13:00:10.388 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
13:00:10.392 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
13:00:10.404 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
13:00:10.405 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
13:00:10.407 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
13:00:10.410 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
13:00:10.420 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
13:00:10.422 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
13:00:10.426 INFO: Indexing files...
13:00:10.435 INFO: Project configuration:
13:00:10.437 INFO:   Excluded sources: **/yotiprotoattr/*.go, **/yotiprotocom/*.go, **/**_test.go
13:00:10.437 INFO:   Included tests: **/**_test.go
13:00:10.477 DEBUG: readpipe [git, --version],C:\Program Files\Git\cmd
13:00:10.586 DEBUG: readpipe may return 'git version 2.21.0.windows.1'
13:00:10.587 DEBUG: remaining output:

13:00:10.605 DEBUG: readpipe [git, config, --system, --edit],C:\Program Files\Git\cmd
13:00:10.748 DEBUG: readpipe may return 'C:/Program Files/Git/mingw64/etc/gitconfig'
13:00:10.749 DEBUG: remaining output:

13:00:10.863 DEBUG: 65 non excluded files in this Git repository
13:00:10.881 DEBUG: '.gitignore' indexed with language 'null'
13:00:10.885 DEBUG: File 'C:\Users\my.username\source\repos\go\.vscode\launch.json' is excluded by the scm ignore settings.
13:00:10.893 DEBUG: File 'C:\Users\my.username\source\repos\go\.vscode\settings.json' is excluded by the scm ignore settings.
13:00:10.907 DEBUG: File 'C:\Users\my.username\source\repos\go\.vscode\tasks.json' is excluded by the scm ignore settings.
13:00:10.917 DEBUG: 'activitydetails.go' indexed with language 'go'
13:00:10.920 DEBUG: 'activityerrors.go' indexed with language 'go'
13:00:10.922 DEBUG: 'aml.go' indexed with language 'go'
13:00:10.925 DEBUG: 'anchor\anchorparser.go' indexed with language 'go'
13:00:10.927 DEBUG: 'anchor\anchors.go' indexed with language 'go'
13:00:10.933 DEBUG: 'anchor\signedtimestamp.go' indexed with language 'go'
13:00:10.938 DEBUG: 'attribute\genericattribute.go' indexed with language 'go'
13:00:10.940 DEBUG: 'attribute\image.go' indexed with language 'go'
13:00:10.942 DEBUG: 'attribute\imageattribute.go' indexed with language 'go'
13:00:10.946 DEBUG: 'attribute\imagesliceattribute.go' indexed with language 'go'
13:00:10.949 DEBUG: 'attribute\item.go' indexed with language 'go'
13:00:10.951 DEBUG: 'attribute\jsonattribute.go' indexed with language 'go'
13:00:10.956 DEBUG: 'attribute\multivalueattribute.go' indexed with language 'go'
13:00:10.960 DEBUG: 'attribute\parser.go' indexed with language 'go'
13:00:10.974 DEBUG: 'attribute\stringattribute.go' indexed with language 'go'
13:00:10.980 DEBUG: 'attribute\timeattribute.go' indexed with language 'go'
13:00:10.993 DEBUG: 'CONTRIBUTING.md' indexed with language 'null'
13:00:10.997 DEBUG: 'conversion.go' indexed with language 'go'
13:00:11.001 DEBUG: 'coverage.out' indexed with language 'null'
13:00:11.014 DEBUG: 'coverage.xml' indexed with language 'xml'
13:00:11.019 DEBUG: 'crypto.go' indexed with language 'go'
13:00:11.022 DEBUG: 'dataobjects.go' indexed with language 'go'
13:00:11.023 DEBUG: File 'C:\Users\my.username\source\repos\go\debug.test' is excluded by the scm ignore settings.
13:00:11.029 DEBUG: 'examples\aml\.env.example' indexed with language 'null'
13:00:11.038 DEBUG: 'examples\aml\.gitignore' indexed with language 'null'
13:00:11.041 DEBUG: 'examples\aml\main.go' indexed with language 'go'
13:00:11.043 DEBUG: 'examples\go.mod' indexed with language 'null'
13:00:11.046 DEBUG: 'examples\go.sum' indexed with language 'null'
13:00:11.059 DEBUG: File 'C:\Users\my.username\source\repos\go\examples\profile\.env' is excluded by the scm ignore settings.
13:00:11.061 DEBUG: 'examples\profile\.env.example' indexed with language 'null'
13:00:11.064 DEBUG: 'examples\profile\.gitignore' indexed with language 'null'
13:00:11.070 DEBUG: 'examples\profile\certificatehelper.go' indexed with language 'go'
13:00:11.075 DEBUG: 'examples\profile\images\.keep' indexed with language 'null'
13:00:11.078 DEBUG: File 'C:\Users\my.username\source\repos\go\examples\profile\images\YotiSelfie.jpeg' is excluded by the scm ignore settings.
13:00:11.082 DEBUG: 'examples\profile\login.html' indexed with language 'web'
13:00:11.084 DEBUG: 'examples\profile\main.go' indexed with language 'go'
13:00:11.086 DEBUG: 'examples\profile\profile.html' indexed with language 'web'
13:00:11.088 DEBUG: File 'C:\Users\my.username\source\repos\go\examples\profile\yotiSelfSignedCert.pem' is excluded by the scm ignore settings.
13:00:11.091 DEBUG: File 'C:\Users\my.username\source\repos\go\examples\profile\yotiSelfSignedKey.pem' is excluded by the scm ignore settings.
13:00:11.093 DEBUG: 'go.mod' indexed with language 'null'
13:00:11.094 DEBUG: 'go.sum' indexed with language 'null'
13:00:11.097 DEBUG: 'httprequester.go' indexed with language 'go'
13:00:11.100 DEBUG: 'image.go' indexed with language 'go'
13:00:11.105 DEBUG: 'LICENSE.md' indexed with language 'null'
13:00:11.108 DEBUG: 'login_flow.png' indexed with language 'null'
13:00:11.116 DEBUG: 'README.md' indexed with language 'null'
13:00:11.121 DEBUG: 'sonar-project.properties' indexed with language 'null'
13:00:11.126 DEBUG: 'sonar-report.json' indexed with language 'null'
13:00:11.130 DEBUG: 'test-key-invalid-format.pem' indexed with language 'null'
13:00:11.144 DEBUG: 'test-key.pem' indexed with language 'null'
13:00:11.148 DEBUG: 'test.xml' indexed with language 'xml'
13:00:11.151 DEBUG: 'testanchordrivinglicense.txt' indexed with language 'null'
13:00:11.153 DEBUG: 'testanchorpassport.txt' indexed with language 'null'
13:00:11.157 DEBUG: 'testanchoryotiadmin.txt' indexed with language 'null'
13:00:11.160 DEBUG: 'testattributedateofbirth.txt' indexed with language 'null'
13:00:11.164 DEBUG: 'testattributemultivalue.txt' indexed with language 'null'
13:00:11.167 DEBUG: 'yotiattributevalue.go' indexed with language 'go'
13:00:11.171 DEBUG: 'yoticlient.go' indexed with language 'go'
13:00:11.174 DEBUG: 'yotiprofile.go' indexed with language 'go'
13:00:11.187 DEBUG: 'yotiuserprofile.go' indexed with language 'go'
13:00:11.272 DEBUG: 'yoti_test.go' indexed as test with language 'go'
13:00:11.274 INFO: 57 files indexed
13:00:11.275 INFO: 0 files ignored because of inclusion/exclusion patterns
13:00:11.276 INFO: 0 files ignored because of scm ignore settings
13:00:11.278 INFO: Quality profile for go: Sonar way
13:00:11.279 INFO: Quality profile for web: Sonar way
13:00:11.280 INFO: Quality profile for xml: Sonar way
13:00:11.281 INFO: ------------- Run sensors on module go-sdk
13:00:11.486 INFO: Load metrics repository
13:00:11.558 DEBUG: GET 200 http://localhost:9000/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=70ms
13:00:11.578 INFO: Load metrics repository (done) | time=92ms
13:00:13.516 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
13:00:13.519 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
13:00:13.521 DEBUG: 'Python Squid Sensor' skipped because there is no related file in current project
13:00:13.524 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
13:00:13.528 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
13:00:13.541 DEBUG: 'PylintSensor' skipped because there is no related file in current project
13:00:13.553 DEBUG: 'PylintImportSensor' skipped because there is no related file in current project
13:00:13.556 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
13:00:13.559 DEBUG: 'SonarCSS Metrics' skipped because there is no related file in current project
13:00:13.572 DEBUG: 'SonarCSS Rules' skipped because there is no related file in current project
13:00:13.576 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
13:00:13.578 DEBUG: 'Import of go vet issues' skipped because one of the required properties is missing
13:00:13.580 DEBUG: 'Import of Golint issues' skipped because one of the required properties is missing
13:00:13.581 DEBUG: 'Import of GoMetaLinter issues' skipped because one of the required properties is missing
13:00:13.583 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
13:00:13.585 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
13:00:13.589 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
13:00:13.590 DEBUG: 'SonarJS' skipped because there is no related file in current project
13:00:13.599 DEBUG: 'ESLint-based SonarJS' skipped because there is no related file in current project
13:00:13.601 DEBUG: 'SonarJS Coverage' skipped because there is no related file in current project
13:00:13.604 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
13:00:13.605 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
13:00:13.606 DEBUG: 'Import of RuboCop issues' skipped because one of the required properties is missing
13:00:13.606 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
13:00:13.607 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
13:00:13.608 DEBUG: 'Scoverage sensor for Scala coverage' skipped because one of the required properties is missing
13:00:13.609 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
13:00:13.610 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
13:00:13.613 DEBUG: 'C# Properties' skipped because there is no related file in current project
13:00:13.625 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
13:00:13.626 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
13:00:13.627 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
13:00:13.629 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
13:00:13.631 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
13:00:13.635 DEBUG: 'Flex' skipped because there is no related file in current project
13:00:13.637 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
13:00:13.639 DEBUG: 'PHP sensor' skipped because there is no related file in current project
13:00:13.641 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
13:00:13.642 DEBUG: 'SonarTS' skipped because there is no related file in current project
13:00:13.661 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
13:00:13.667 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
13:00:13.669 DEBUG: 'VB.NET Properties' skipped because there is no related file in current project
13:00:13.683 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
13:00:13.684 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
13:00:13.685 DEBUG: 'C#' skipped because there is no related file in current project
13:00:13.686 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project
13:00:13.688 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project
13:00:13.689 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project
13:00:13.690 DEBUG: 'VB.NET' skipped because there is no related file in current project
13:00:13.691 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project
13:00:13.692 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
13:00:13.693 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
13:00:13.694 DEBUG: Sensors : JaCoCo XML Report Importer -> SonarGo -> Go Unit Test Report -> JavaXmlSensor -> HTML -> XML Sensor
13:00:13.716 INFO: Sensor JaCoCo XML Report Importer [jacoco]
13:00:13.724 DEBUG: No reports found
13:00:13.734 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=19ms
13:00:13.735 INFO: Sensor SonarGo [go]
13:00:14.084 DEBUG: 'activitydetails.go' generated metadata with charset 'windows-1252'
13:00:14.104 WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
13:00:14.437 DEBUG: 'activityerrors.go' generated metadata with charset 'windows-1252'
13:00:14.445 DEBUG: Not enough content in 'activityerrors.go' to have CPD blocks, it will not be part of the duplication detection
13:00:14.538 DEBUG: 'aml.go' generated metadata with charset 'windows-1252'
13:00:14.760 DEBUG: 'anchor/anchorparser.go' generated metadata with charset 'windows-1252'
13:00:14.869 DEBUG: 'anchor/anchors.go' generated metadata with charset 'UTF-8'
13:00:14.968 DEBUG: 'anchor/signedtimestamp.go' generated metadata with charset 'windows-1252'
13:00:15.107 DEBUG: 'attribute/genericattribute.go' generated metadata with charset 'windows-1252'
13:00:15.186 DEBUG: 'attribute/image.go' generated metadata with charset 'windows-1252'
13:00:15.269 DEBUG: 'attribute/imageattribute.go' generated metadata with charset 'windows-1252'
13:00:15.348 DEBUG: 'attribute/imagesliceattribute.go' generated metadata with charset 'windows-1252'
13:00:15.439 DEBUG: 'attribute/item.go' generated metadata with charset 'windows-1252'
13:00:15.515 DEBUG: 'attribute/jsonattribute.go' generated metadata with charset 'windows-1252'
13:00:15.599 DEBUG: 'attribute/multivalueattribute.go' generated metadata with charset 'windows-1252'
13:00:15.831 DEBUG: 'attribute/parser.go' generated metadata with charset 'windows-1252'
13:00:15.929 DEBUG: 'attribute/stringattribute.go' generated metadata with charset 'windows-1252'
13:00:16.117 DEBUG: 'attribute/timeattribute.go' generated metadata with charset 'windows-1252'
13:00:16.432 DEBUG: 'conversion.go' generated metadata with charset 'windows-1252'
13:00:17.138 DEBUG: 'crypto.go' generated metadata with charset 'windows-1252'
13:00:17.359 DEBUG: 'dataobjects.go' generated metadata with charset 'windows-1252'
13:00:17.499 DEBUG: 'examples/aml/main.go' generated metadata with charset 'windows-1252'
13:00:17.598 DEBUG: 'examples/profile/certificatehelper.go' generated metadata with charset 'windows-1252'
13:00:17.735 DEBUG: 'examples/profile/main.go' generated metadata with charset 'windows-1252'
13:00:17.871 DEBUG: 'httprequester.go' generated metadata with charset 'windows-1252'
13:00:17.958 DEBUG: 'image.go' generated metadata with charset 'windows-1252'
13:00:18.103 DEBUG: 'yoti_test.go' generated metadata as test  with charset 'windows-1252'
13:00:18.210 DEBUG: 'yotiattributevalue.go' generated metadata with charset 'windows-1252'
13:00:18.366 DEBUG: 'yoticlient.go' generated metadata with charset 'windows-1252'
13:00:18.541 DEBUG: 'yotiprofile.go' generated metadata with charset 'windows-1252'
13:00:18.638 DEBUG: 'yotiuserprofile.go' generated metadata with charset 'windows-1252'
13:00:18.645 INFO: Load coverage report from 'C:\Users\my.username\source\repos\go\coverage.out'
13:00:18.661 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/image.go using relative path
13:00:18.668 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/image.go'
13:00:18.690 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/activitydetails.go using relative path
13:00:18.692 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/activitydetails.go'
13:00:18.697 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yotiattributevalue.go using relative path
13:00:18.699 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yotiattributevalue.go'
13:00:18.704 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/crypto.go using relative path
13:00:18.705 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/crypto.go'
13:00:18.724 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yotiprofile.go using relative path
13:00:18.726 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yotiprofile.go' 13:00:18.730 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/conversion.go using relative path
13:00:18.731 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/conversion.go'
13:00:18.734 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/aml.go using relative path
13:00:18.735 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/aml.go'
13:00:18.739 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/httprequester.go using relative path

13:00:18.740 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/httprequester.go'
13:00:18.747 DEBUG: Resolving file C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yoticlient.go using relative path
13:00:18.749 DEBUG: Saving coverage measures for file 'C:\Users\my.username\go\src\github.com/getyoti/yoti-go-sdk/v2/yoticlient.go'
13:00:18.771 INFO: Sensor SonarGo [go] (done) | time=5036ms
13:00:18.773 INFO: Sensor Go Unit Test Report [go]
13:00:18.796 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_KeyLoad_Failure
13:00:18.797 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_HttpFailure_ReturnsFailure
13:00:18.798 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_HttpFailure_ReturnsProfileNotFound
13:00:18.799 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_SharingFailure_ReturnsFailure
13:00:18.800 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_TokenDecodedSuccessfully
13:00:18.801 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseProfile_Success 13:00:18.802 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParentRememberMeID
13:00:18.803 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseWithoutProfile_Success
13:00:18.803 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseWithoutRememberMeID_Success
13:00:18.805 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_UnsupportedHttpMethod_ReturnsError
13:00:18.806 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_SupportedHttpMethod
13:00:18.806 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_PerformAmlCheck_Success
13:00:18.807 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_PerformAmlCheck_Unsuccessful
13:00:18.808 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseIsAgeVerifiedValue_True
13:00:18.809 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseIsAgeVerifiedValue_False
13:00:18.810 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_ParseIsAgeVerifiedValue_InvalidValueThrowsError
13:00:18.810 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_UnmarshallJSONValue_InvalidValueThrowsError
13:00:18.811 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_UnmarshallJSONValue_ValidValue
13:00:18.812 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_MissingPostalAddress_UsesFormattedAddress
13:00:18.812 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_PresentPostalAddress_DoesntUseFormattedAddress
13:00:18.813 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestYotiClient_MissingFormattedAddress_AddressUnchanged
13:00:18.814 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_String
13:00:18.815 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestEmptyStringIsAllowed
13:00:18.815 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_Time
13:00:18.816 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_Jpeg
13:00:18.816 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_Png
13:00:18.999 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_Bool
13:00:19.047 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_JSON
13:00:19.049 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_Undefined
13:00:19.051 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_GetAttribute_ReturnsNil 13:00:19.053 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_StringAttribute
13:00:19.054 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestProfile_AttributeProperty_RetrievesAttribute
13:00:19.056 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAttributeImage_Image_Png
13:00:19.058 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAttributeImage_Image_Jpeg
13:00:19.070 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAttributeImage_Image_Default
13:00:19.072 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAttributeImage_Base64Selfie_Png 13:00:19.073 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAttributeImage_Base64URL_Jpeg
13:00:19.075 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAnchorParser_Passport
13:00:19.077 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAnchorParser_DrivingLicense
13:00:19.077 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAnchorParser_YotiAdmin
13:00:19.094 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestAnchors_None
13:00:19.108 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestDateOfBirthAttribute
13:00:19.131 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestNewImageSlice
13:00:19.139 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestImageSliceNotCreatedWithNonMultiValueType
13:00:19.141 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestMultiValueNotCreatedWithNonMultiValueType
13:00:19.146 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestNewMultiValue
13:00:19.148 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestInvalidMultiValueNotReturned
13:00:19.149 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestNestedMultiValue
13:00:19.149 WARN: Failed to find test file for package github.com/getyoti/yoti-go-sdk/v2 and test TestMultiValueGenericGetter
13:00:19.150 INFO: Sensor Go Unit Test Report [go] (done) | time=377ms
13:00:19.151 INFO: Sensor JavaXmlSensor [java]
13:00:19.155 INFO: 2 source files to be analyzed
13:00:19.175 DEBUG: 'coverage.xml' generated metadata with charset 'windows-1252'
13:00:19.634 DEBUG: 'test.xml' generated metadata with charset 'windows-1252'
13:00:19.790 INFO: Sensor JavaXmlSensor [java] (done) | time=639ms
13:00:19.790 INFO: 2/2 source files have been analyzed
13:00:19.812 INFO: Sensor HTML [web]
13:00:19.855 DEBUG: 'examples/profile/login.html' generated metadata with charset 'windows-1252'
13:00:19.930 DEBUG: HtmlSensor: examples/profile/login.html: 0,0,1
13:00:19.958 DEBUG: 'examples/profile/profile.html' generated metadata with charset 'windows-1252'
13:00:19.987 DEBUG: HtmlSensor: examples/profile/profile.html: 0,0,1
13:00:20.009 INFO: Sensor HTML [web] (done) | time=197ms
13:00:20.010 INFO: Sensor XML Sensor [xml]
13:00:20.017 INFO: 2 source files to be analyzed
13:00:20.269 DEBUG: Count lines in file:///C:/Users/my.username/source/repos/go/coverage.xml
13:00:20.407 DEBUG: Count lines in file:///C:/Users/my.username/source/repos/go/test.xml
13:00:20.619 INFO: Sensor XML Sensor [xml] (done) | time=609ms
13:00:20.619 INFO: 2/2 source files have been analyzed
13:00:20.630 INFO: ------------- Run sensors on project
13:00:20.638 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project
13:00:20.639 DEBUG: Sensors : Zero Coverage Sensor
13:00:20.640 INFO: Sensor Zero Coverage Sensor
13:00:20.744 INFO: Sensor Zero Coverage Sensor (done) | time=104ms
13:00:20.752 INFO: SCM provider for this project is: git
13:00:20.774 INFO: 33 files to be analyzed
13:00:20.831 DEBUG: Blame file attribute/jsonattribute.go
13:00:20.832 DEBUG: Blame file examples/profile/profile.html
13:00:20.831 DEBUG: Blame file test.xml
13:00:20.832 DEBUG: Blame file httprequester.go
13:00:20.976 DEBUG: Unable to blame file test.xml. No blame info at line 1. Is file committed? [Author: PersonIdent[Not Committed Yet, , Wed Apr 3 13:00:20 2019 +0100] Source commit: null]
13:00:20.998 DEBUG: Blame file yoti_test.go
13:00:21.225 DEBUG: Blame file aml.go
13:00:21.224 DEBUG: Blame file attribute/image.go
13:00:21.228 DEBUG: Blame file crypto.go
13:00:21.348 DEBUG: Blame file attribute/timeattribute.go
13:00:21.376 DEBUG: Blame file attribute/genericattribute.go
13:00:21.407 DEBUG: Blame file anchor/anchorparser.go
13:00:21.489 DEBUG: Blame file attribute/stringattribute.go
13:00:21.539 DEBUG: Blame file yotiprofile.go
13:00:21.558 DEBUG: Blame file examples/aml/main.go
13:00:21.556 DEBUG: Blame file activityerrors.go
13:00:21.582 DEBUG: Blame file attribute/multivalueattribute.go
13:00:21.664 DEBUG: Blame file conversion.go
13:00:21.694 DEBUG: Blame file image.go
13:00:21.761 DEBUG: Blame file yoticlient.go
13:00:21.795 DEBUG: Blame file attribute/item.go
13:00:21.794 DEBUG: Blame file yotiattributevalue.go
13:00:21.764 DEBUG: Blame file anchor/anchors.go
13:00:21.896 DEBUG: Blame file attribute/imagesliceattribute.go
13:00:21.911 DEBUG: Blame file attribute/parser.go
13:00:21.909 DEBUG: Blame file attribute/imageattribute.go
13:00:21.907 DEBUG: Blame file yotiuserprofile.go
13:00:22.110 DEBUG: Blame file examples/profile/main.go
13:00:22.114 DEBUG: Blame file activitydetails.go
13:00:22.113 DEBUG: Blame file coverage.xml
13:00:22.136 DEBUG: Blame file dataobjects.go
13:00:22.163 DEBUG: Blame file examples/profile/login.html
13:00:22.150 DEBUG: Unable to blame file coverage.xml. No blame info at line 1. Is file committed? [Author: PersonIdent[Not Committed Yet, , Wed Apr 3 13:00:22 2019 +0100] Source commit: null]
13:00:22.218 DEBUG: Blame file anchor/signedtimestamp.go
13:00:22.259 DEBUG: Blame file examples/profile/certificatehelper.go
13:00:22.307 INFO: 31/33 files analyzed
13:00:22.308 WARN: Missing blame information for the following files:
13:00:22.311 WARN:   * test.xml
13:00:22.312 WARN:   * coverage.xml
13:00:22.313 WARN: This may lead to missing/broken features in SonarQube
13:00:22.333 INFO: 1 file had no CPD blocks
13:00:22.348 INFO: Calculating CPD for 29 files
13:00:22.349 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/httprequester.go
13:00:22.374 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/examples/profile/login.html
13:00:22.383 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/aml.go
13:00:22.387 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/timeattribute.go
13:00:22.395 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/yotiprofile.go
13:00:22.401 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/yotiattributevalue.go
13:00:22.404 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/item.go
13:00:22.407 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/examples/aml/main.go
13:00:22.414 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/examples/profile/profile.html
13:00:22.417 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/yoticlient.go
13:00:22.420 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/activitydetails.go
13:00:22.422 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/image.go
13:00:22.425 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/anchor/anchors.go
13:00:22.427 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/dataobjects.go
13:00:22.433 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/conversion.go
13:00:22.435 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/yotiuserprofile.go
13:00:22.437 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/parser.go
13:00:22.442 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/anchor/anchorparser.go
13:00:22.445 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/imagesliceattribute.go
13:00:22.450 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/stringattribute.go
13:00:22.455 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/crypto.go
13:00:22.457 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/image.go
13:00:22.460 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/examples/profile/certificatehelper.go
13:00:22.463 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/examples/profile/main.go
13:00:22.466 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/multivalueattribute.go
13:00:22.468 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/imageattribute.go
13:00:22.470 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/genericattribute.go
13:00:22.474 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/attribute/jsonattribute.go
13:00:22.476 DEBUG: Detection of duplications for C:/Users/my.username/source/repos/go/anchor/signedtimestamp.go
13:00:22.478 INFO: CPD calculation finished
13:00:22.910 INFO: Analysis report generated in 358ms, dir size=465 KB
13:00:23.619 INFO: Analysis report compressed in 701ms, zip size=144 KB
13:00:23.620 INFO: Analysis report generated in C:\Users\my.username\source\repos\go\.scannerwork\scanner-report
13:00:23.621 DEBUG: Upload report
13:00:24.083 DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=yoti-web-sdk%3Ago&projectName=go-sdk | time=458ms
13:00:24.085 INFO: Analysis report uploaded in 464ms
13:00:24.087 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=yoti-web-sdk%3Ago
13:00:24.088 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
13:00:24.088 INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWnjElfO3bdKF5H28oZJ
13:00:24.092 DEBUG: Report metadata written to C:\Users\my.username\source\repos\go\.scannerwork\report-task.txt
13:00:24.097 DEBUG: Post-jobs :
13:00:24.101 INFO: Analysis total time: 20.450 s
13:00:24.108 INFO: ------------------------------------------------------------------------
13:00:24.109 INFO: EXECUTION SUCCESS
13:00:24.109 INFO: ------------------------------------------------------------------------
13:00:24.110 INFO: Total time: 26.129s
13:00:24.257 INFO: Final Memory: 17M/310M
13:00:24.258 INFO: ------------------------------------------------------------------------

Test.xml file:

(classname="v2")?

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
    <testsuite tests="49" failures="0" time="0.000" name="github.com/getyoti/yoti-go-sdk/v2">
        <properties>
            <property name="go.version" value="go1.12"></property>
        </properties>
        <testcase classname="v2" name="TestYotiClient_KeyLoad_Failure" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_HttpFailure_ReturnsFailure" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_HttpFailure_ReturnsProfileNotFound" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_SharingFailure_ReturnsFailure" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_TokenDecodedSuccessfully" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseProfile_Success" time="0.030"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParentRememberMeID" time="0.030"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseWithoutProfile_Success" time="0.080"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseWithoutRememberMeID_Success" time="0.060"></testcase>
        <testcase classname="v2" name="TestYotiClient_UnsupportedHttpMethod_ReturnsError" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_SupportedHttpMethod" time="0.760"></testcase>
        <testcase classname="v2" name="TestYotiClient_PerformAmlCheck_Success" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_PerformAmlCheck_Unsuccessful" time="0.020"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseIsAgeVerifiedValue_True" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseIsAgeVerifiedValue_False" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_ParseIsAgeVerifiedValue_InvalidValueThrowsError" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_UnmarshallJSONValue_InvalidValueThrowsError" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_UnmarshallJSONValue_ValidValue" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_MissingPostalAddress_UsesFormattedAddress" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_PresentPostalAddress_DoesntUseFormattedAddress" time="0.000"></testcase>
        <testcase classname="v2" name="TestYotiClient_MissingFormattedAddress_AddressUnchanged" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_String" time="0.000"></testcase>
        <testcase classname="v2" name="TestEmptyStringIsAllowed" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_Time" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_Jpeg" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_Png" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_Bool" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_JSON" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_Undefined" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_GetAttribute_ReturnsNil" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_StringAttribute" time="0.000"></testcase>
        <testcase classname="v2" name="TestProfile_AttributeProperty_RetrievesAttribute" time="0.000"></testcase>
        <testcase classname="v2" name="TestAttributeImage_Image_Png" time="0.000"></testcase>
        <testcase classname="v2" name="TestAttributeImage_Image_Jpeg" time="0.000"></testcase>
        <testcase classname="v2" name="TestAttributeImage_Image_Default" time="0.000"></testcase>
        <testcase classname="v2" name="TestAttributeImage_Base64Selfie_Png" time="0.000"></testcase>
        <testcase classname="v2" name="TestAttributeImage_Base64URL_Jpeg" time="0.000"></testcase>
        <testcase classname="v2" name="TestAnchorParser_Passport" time="0.000"></testcase>
        <testcase classname="v2" name="TestAnchorParser_DrivingLicense" time="0.000"></testcase>
        <testcase classname="v2" name="TestAnchorParser_YotiAdmin" time="0.000"></testcase>
        <testcase classname="v2" name="TestAnchors_None" time="0.000"></testcase>
        <testcase classname="v2" name="TestDateOfBirthAttribute" time="0.000"></testcase>
        <testcase classname="v2" name="TestNewImageSlice" time="0.000"></testcase>
        <testcase classname="v2" name="TestImageSliceNotCreatedWithNonMultiValueType" time="0.000"></testcase>
        <testcase classname="v2" name="TestMultiValueNotCreatedWithNonMultiValueType" time="0.000"></testcase>
        <testcase classname="v2" name="TestNewMultiValue" time="0.000"></testcase>
        <testcase classname="v2" name="TestInvalidMultiValueNotReturned" time="0.000"></testcase>
        <testcase classname="v2" name="TestNestedMultiValue" time="0.000"></testcase>
        <testcase classname="v2" name="TestMultiValueGenericGetter" time="0.000"></testcase>
    </testsuite>
</testsuites>

Versions

server: sonarqube-7.7 sonar-scanner: sonar-scanner-cli-3.3.0.1492-windows / sonarqube gometalinter: v3.0.0 go: 1.12 GO111MODULE=auto OS Windows 10

em503c commented 5 years ago

Hi, has this been resolved? The same behavior is seen from my environment as well.

echarrod commented 5 years ago

I haven't been able to get it working on my environment, hoping someone can look at it

saberduck commented 5 years ago

hello,

I managed to reproduce the problem. Issue is that go test is using module name as a package in the json report. We currently don't support modules. I created issue #378 to track it

em503c commented 5 years ago

Thanks @saberduck. Please let us know when the fix is implemented.

Best regards, Edwin

solcates commented 5 years ago

Any progress with this?

em503c commented 5 years ago

@saberduck are there any updates with this?

saberduck commented 5 years ago

@em503c this repository will not be updated anymore. New Go plugin for SonarQube is available in this repository https://github.com/SonarSource/slang. I created ticket https://jira.sonarsource.com/browse/SONARSLANG-450 to track this issue.

Please open a thread on our community forum https://community.sonarsource.com/ if there is something else to discuss, this repository will be soon archived.