SonarOpenCommunity / sonar-cxx

SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools.
GNU Lesser General Public License v3.0
988 stars 364 forks source link

C++ cannot be analyzed with current SonarQube edition. Please consider upgrading... #2172

Closed consulion closed 3 years ago

consulion commented 3 years ago

Hi, thanks for your great work! We've been using the previous version of this plugin with an older version of SQ, recently updated both SQ + this plugin to the most recent release (SQ Community Edition, Version 8.9 (build 43852)), Plugin version 2.0.2 (build 2734).

I followed the upgrade guidelines, and can see files are indexed and CXX-Scanner is working in the log, afterwards it shows 05:47:31.313 INFO: Sensor CXX [cxx] (done) | time=766004ms but after the report is generated, compressed and uploaded, no issues show up in SQ, and the following warning is shown:

2466 unanalyzed C++ files were detected in this project during the last analysis. C++ cannot be analyzed with your current SonarQube edition. Please consider upgrading to Developer Edition to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file.

Is this still supposed to work with SQ community edition? What could possibly cause this?

guwirth commented 3 years ago

Hi @consulion,

Is this still supposed to work with SQ community edition? What could possibly cause this?

The cxx plugin 2.0 should work with SQ 8.9 LTS. We are doing several integration tests with it without problems.

Please read these two wiki pages, there are also LOG file samples and a description how to interpret it:

Please do a first small test with the demo project, is this working?

2466 unanalyzed C++ files were detected in this project during the last analysis. C++ cannot be analyzed with your current SonarQube edition. Please consider upgrading to Developer Edition to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file.

This message is not from the cxx plugin. Maybe there is another C++ plugin activated on your server?

Regards,

consulion commented 3 years ago

Hi @guwirth,

thanks for your answer, it worked with 1.3.3 and a previous version of SQ (not exactly sure which), but stopped working after upgrading. I read those pages already, also looked at all debug output but can't seem to find any errors. Analyzing the demo project has same result, no issues found and the same warning about not being able to analyze C++ with the current edition (Community)... Scanner outputs the following:

[sqtest] $ c:\jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\DefaultSonar\bin\sonar-scanner.bat -Dsonar.host.url=https://mars:9097 ******** -Dproject.settings=c:\jenkins\workspace\sqtest\sonar-project.properties -Dsonar.projectBaseDir=c:\jenkins\workspace\sqtest
INFO: Scanner configuration file: c:\jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\DefaultSonar\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: c:\jenkins\workspace\sqtest\sonar-project.properties
13:46:41.267 INFO: SonarQube Scanner 3.3.0.1492
13:46:41.270 INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
13:46:41.270 INFO: Windows 10 10.0 amd64
13:46:41.367 DEBUG: keyStore is : 
13:46:41.367 DEBUG: keyStore type is : pkcs12
13:46:41.367 DEBUG: keyStore provider is : 
13:46:41.367 DEBUG: init keystore
13:46:41.367 DEBUG: init keymanager of type SunX509
13:46:41.503 DEBUG: Create: C:\Users\jenkins\.sonar\cache
13:46:41.504 INFO: User cache: C:\Users\jenkins\.sonar\cache
13:46:41.504 DEBUG: Create: C:\Users\jenkins\.sonar\cache\_tmp
13:46:41.506 DEBUG: Extract sonar-scanner-api-batch in temp...
13:46:41.509 DEBUG: Get bootstrap index...
13:46:41.509 DEBUG: Download: https://mars:9097/batch/index
13:46:41.700 DEBUG: Get bootstrap completed
13:46:41.703 DEBUG: Create isolated classloader...
13:46:41.709 DEBUG: Start temp cleaning...
13:46:41.713 DEBUG: Temp cleaning done
13:46:41.713 DEBUG: Execution getVersion
13:46:41.723 INFO: SonarQube server 8.9.0
13:46:41.723 INFO: Default locale: "de_DE", source code encoding: "windows-1252" (analysis is platform dependent)
13:46:41.724 DEBUG: Work directory: c:\jenkins\workspace\sqtest\.scannerwork
13:46:41.725 DEBUG: Execution execute
13:46:41.914 DEBUG: Community 8.9.0.43852
13:46:42.015 INFO: Load global settings
13:46:42.139 DEBUG: GET 200 https://mars:9097/api/settings/values.protobuf | time=123ms
13:46:42.161 INFO: Load global settings (done) | time=146ms
13:46:42.164 INFO: Server id: 02F7F878-AWkUFFbfVi93mEDEIKUm
13:46:42.166 INFO: User cache: C:\Users\jenkins\.sonar\cache
13:46:42.169 INFO: Load/download plugins
13:46:42.169 INFO: Load plugins index
13:46:42.182 DEBUG: GET 200 https://mars:9097/api/plugins/installed | time=13ms
13:46:42.205 INFO: Load plugins index (done) | time=36ms
13:46:42.265 INFO: Load/download plugins (done) | time=95ms
13:46:42.332 DEBUG: Plugins:
13:46:42.332 DEBUG:   * Dependency-Check 2.0.7 (dependencycheck)
13:46:42.332 DEBUG:   * C++ (Community) 2.0.2.2734 (cxx)
13:46:42.332 DEBUG:   * Python Code Quality and Security 3.4.1.8066 (python)
13:46:42.333 DEBUG:   * CSS Code Quality and Security 1.4.2.2002 (cssfamily)
13:46:42.333 DEBUG:   * Code Smells 4.0.0 (smells)
13:46:42.333 DEBUG:   * Go Code Quality and Security 1.8.3.2219 (go)
13:46:42.333 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
13:46:42.333 DEBUG:   * Kotlin Code Quality and Security 1.8.3.2219 (kotlin)
13:46:42.333 DEBUG:   * jDepend 1.1.1 (jdepend)
13:46:42.333 DEBUG:   * JavaScript/TypeScript Code Quality and Security 7.4.2.15501 (javascript)
13:46:42.333 DEBUG:   * Ruby Code Quality and Security 1.8.3.2219 (ruby)
13:46:42.333 DEBUG:   * Scala Code Quality and Security 1.8.3.2219 (sonarscala)
13:46:42.333 DEBUG:   * C# Code Quality and Security 8.22.0.31243 (csharp)
13:46:42.333 DEBUG:   * Findbugs 4.0.3 (findbugs)
13:46:42.333 DEBUG:   * Java Code Quality and Security 6.15.1.26025 (java)
13:46:42.333 DEBUG:   * HTML Code Quality and Security 3.4.0.2754 (web)
13:46:42.334 DEBUG:   * Flex Code Quality and Security 2.6.1.2564 (flex)
13:46:42.334 DEBUG:   * XML Code Quality and Security 2.2.0.2973 (xml)
13:46:42.334 DEBUG:   * PHP Code Quality and Security 3.17.0.7439 (php)
13:46:42.334 DEBUG:   * SoftVis3D Sonar plugin 1.2.1 (softvis3d)
13:46:42.334 DEBUG:   * Java I18n Rules 1.0-SNAPSHOT (javai18n)
13:46:42.334 DEBUG:   * VB.NET Code Quality and Security 8.22.0.31243 (vbnet)
13:46:42.334 DEBUG:   * YAML Analyzer 1.5.2 (yaml)
13:46:42.675 INFO: Process project properties
13:46:42.681 INFO: Process project properties (done) | time=6ms
13:46:42.681 INFO: Execute project builders
13:46:42.681 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
13:46:42.682 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
13:46:42.682 INFO: Execute project builders (done) | time=1ms
13:46:42.686 INFO: Project key: hello_world
13:46:42.686 INFO: Base dir: C:\jenkins\workspace\sqtest
13:46:42.686 INFO: Working dir: c:\jenkins\workspace\sqtest\.scannerwork
13:46:42.686 DEBUG: Project global encoding: windows-1252, default locale: de_DE
13:46:42.687 DEBUG: Creating module hierarchy
13:46:42.688 DEBUG:   Init module 'hello_world'
13:46:42.688 DEBUG:     Base dir: C:\jenkins\workspace\sqtest
13:46:42.688 DEBUG:     Working dir: c:\jenkins\workspace\sqtest\.scannerwork
13:46:42.688 DEBUG:     Module global encoding: windows-1252, default locale: de_DE
13:46:42.775 INFO: Load project settings for component key: 'hello_world'
13:46:42.802 DEBUG: GET 200 https://mars:9097/api/settings/values.protobuf?component=hello_world | time=26ms
13:46:42.803 INFO: Load project settings for component key: 'hello_world' (done) | time=28ms
13:46:42.823 DEBUG: Available languages:
13:46:42.823 DEBUG:   * Neutral => "neutral"
13:46:42.823 DEBUG:   * CXX => "cxx"
13:46:42.823 DEBUG:   * Python => "py"
13:46:42.823 DEBUG:   * CSS => "css"
13:46:42.823 DEBUG:   * Go => "go"
13:46:42.823 DEBUG:   * Kotlin => "kotlin"
13:46:42.823 DEBUG:   * JavaScript => "js"
13:46:42.823 DEBUG:   * TypeScript => "ts"
13:46:42.824 DEBUG:   * Ruby => "ruby"
13:46:42.824 DEBUG:   * Scala => "scala"
13:46:42.824 DEBUG:   * C# => "cs"
13:46:42.824 DEBUG:   * Java => "java"
13:46:42.824 DEBUG:   * HTML => "web"
13:46:42.824 DEBUG:   * JSP => "jsp"
13:46:42.824 DEBUG:   * Flex => "flex"
13:46:42.824 DEBUG:   * XML => "xml"
13:46:42.824 DEBUG:   * PHP => "php"
13:46:42.824 DEBUG:   * VB.NET => "vbnet"
13:46:42.824 DEBUG:   * YAML => "yaml"
13:46:42.832 INFO: Auto-configuring with CI 'Jenkins'
13:46:42.833 INFO: Load quality profiles
13:46:42.881 DEBUG: GET 200 https://mars:9097/api/qualityprofiles/search.protobuf?project=hello_world | time=48ms
13:46:42.894 INFO: Load quality profiles (done) | time=61ms
13:46:42.897 INFO: Auto-configuring with CI 'Jenkins'
13:46:42.899 INFO: Load active rules
13:46:42.951 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWkuSffWOE1Iu2kX18D-&ps=500&p=1 | time=52ms
13:46:43.014 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXmKLnK_YG5DbsudXbQT&ps=500&p=1 | time=22ms
13:46:43.049 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwAZw-UjBqxDkZZI&ps=500&p=1 | time=35ms
13:46:43.071 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwF0w-UjBqxDkZZ0&ps=500&p=1 | time=19ms
13:46:43.101 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwLGw-UjBqxDkZa3&ps=500&p=1 | time=29ms
13:46:43.140 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwOFw-UjBqxDkZcY&ps=500&p=1 | time=35ms
13:46:43.213 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWkUFNvYVi93mEDEIN2b&ps=500&p=1 | time=71ms
13:46:43.242 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXddexi9kVtWXyE_CHWP&ps=500&p=1 | time=17ms
13:46:43.309 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwdHw-UjBqxDkZlm&ps=500&p=1 | time=66ms
13:46:43.350 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dwhvw-UjBqxDkZot&ps=500&p=1 | time=33ms
13:46:43.452 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWkUFNHnVi93mEDEIMgW&ps=500&p=1 | time=100ms
13:46:43.850 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWklljn2_vkm22Wu1rcs&ps=500&p=1 | time=389ms
13:46:44.135 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWklljn2_vkm22Wu1rcs&ps=500&p=2 | time=271ms
13:46:44.301 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWklljn2_vkm22Wu1rcs&ps=500&p=3 | time=156ms
13:46:44.340 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dw09w-UjBqxDkZsD&ps=500&p=1 | time=30ms
13:46:44.370 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dw4lw-UjBqxDkZuH&ps=500&p=1 | time=29ms
13:46:44.391 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWkUGkBvt9ujpmVAj_Ut&ps=500&p=1 | time=20ms
13:46:44.450 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dw8Tw-UjBqxDkZy8&ps=500&p=1 | time=57ms
13:46:44.507 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXc5dxGzw-UjBqxDkZ6r&ps=500&p=1 | time=55ms
13:46:44.569 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW9q26hOBkbwagT-hCs7&ps=500&p=1 | time=60ms
13:46:44.595 DEBUG: GET 200 https://mars:9097/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWkUFNyxVi93mEDEIN4J&ps=500&p=1 | time=22ms
13:46:44.604 INFO: Load active rules (done) | time=1705ms
13:46:44.608 DEBUG: SCM Step is disabled by configuration
13:46:44.636 DEBUG: Declared extensions of language Neutral were converted to sonar.lang.patterns.neutral : 
13:46:44.637 DEBUG: Declared extensions of language CXX were converted to sonar.lang.patterns.cxx : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h
13:46:44.637 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
13:46:44.637 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
13:46:44.637 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
13:46:44.638 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
13:46:44.638 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.mjs,**/*.vue
13:46:44.638 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
13:46:44.638 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
13:46:44.638 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
13:46:44.638 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
13:46:44.638 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
13:46:44.639 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
13:46:44.639 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
13:46:44.639 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
13:46:44.639 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
13:46:44.639 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
13:46:44.639 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
13:46:44.640 DEBUG: Declared extensions of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml
13:46:44.642 DEBUG: Will ignore generated code
13:46:44.643 DEBUG: Will ignore generated code
13:46:44.643 INFO: Indexing files...
13:46:44.643 INFO: Project configuration:
13:46:44.644 INFO:   Excluded sources: LiquidoClient/src/main/**/*, LiquidoClient/src/test/**/*, Obsolet/**/*, pdftotext_3_02/**/*, Elekon/boostlib/**/*, Elekon/lua-5.3.3/**/*, Elekon/Release/**/*, Elekon/run/**/*, ElekonLibrary/openssl/**/*, ElekonLibrary/zlib/**/*
13:46:44.653 DEBUG: 'src\main.cc' indexed with language 'cxx'
13:46:44.654 INFO: 1 file indexed
13:46:44.654 INFO: 0 files ignored because of inclusion/exclusion patterns
13:46:44.654 INFO: Quality profile for cxx: Sonar way
13:46:44.654 INFO: ------------- Run sensors on module hello_world
13:46:44.716 INFO: Load metrics repository
13:46:44.732 DEBUG: GET 200 https://mars:9097/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=16ms
13:46:44.744 INFO: Load metrics repository (done) | time=28ms
13:46:45.256 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
13:46:45.256 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
13:46:45.256 DEBUG: 'Python Sensor' skipped because there is no related file in current project
13:46:45.256 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
13:46:45.256 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'Import of Pylint issues' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'Import of Flake8 issues' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'CSS Metrics' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
13:46:45.257 DEBUG: 'SmellMeasuresSensor' skipped because there is no related file in current project
13:46:45.258 DEBUG: 'Code Quality and Security for Go' skipped because there is no related file in current project
13:46:45.258 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
13:46:45.258 DEBUG: 'Go Cover sensor for Go coverage' skipped because one of the required properties is missing
13:46:45.259 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
13:46:45.259 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
13:46:45.259 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
13:46:45.259 DEBUG: 'Import of GolangCI-Lint issues' skipped because there is no related file in current project
13:46:45.259 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
13:46:45.259 DEBUG: 'KotlinSurefireSensor' skipped because there is no related file in current project
13:46:45.260 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
13:46:45.260 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
13:46:45.260 DEBUG: 'jDepend sensor' skipped because there is no related file in current project
13:46:45.260 DEBUG: 'Packages sensor' skipped because there is no related file in current project
13:46:45.261 DEBUG: 'JavaScript analysis' skipped because there is no related file in current project
13:46:45.261 DEBUG: 'TypeScript analysis' skipped because there is no related file in current project
13:46:45.261 DEBUG: 'JavaScript/TypeScript Coverage' skipped because there is no related file in current project
13:46:45.261 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
13:46:45.261 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
13:46:45.262 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
13:46:45.262 DEBUG: 'Import of RuboCop issues' skipped because there is no related file in current project
13:46:45.262 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
13:46:45.262 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
13:46:45.262 DEBUG: 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project
13:46:45.263 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
13:46:45.263 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
13:46:45.263 DEBUG: 'FindBugs Sensor' skipped because there is no related file in current project
13:46:45.263 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
13:46:45.263 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
13:46:45.264 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
13:46:45.264 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
13:46:45.264 DEBUG: 'Removed properties sensor' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'Flex' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'XML Sensor' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'PHP sensor' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
13:46:45.265 DEBUG: 'YAML Sensor' skipped because there is no related file in current project
13:46:45.267 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
13:46:45.267 DEBUG: Sensors : CSS Rules -> JaCoCo XML Report Importer -> C# Project Type Information -> C# Properties -> JavaXmlSensor -> HTML -> VB.NET Project Type Information -> VB.NET Properties
13:46:45.268 INFO: Sensor CSS Rules [cssfamily]
13:46:45.268 INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
13:46:45.268 INFO: Sensor CSS Rules [cssfamily] (done) | time=0ms
13:46:45.268 INFO: Sensor JaCoCo XML Report Importer [jacoco]
13:46:45.270 INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
13:46:45.271 INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
13:46:45.271 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
13:46:45.271 INFO: Sensor C# Project Type Information [csharp]
13:46:45.272 INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
13:46:45.272 INFO: Sensor C# Properties [csharp]
13:46:45.272 DEBUG: Project 'hello_world': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
13:46:45.273 DEBUG: Project 'hello_world': No Roslyn issues reports have been found.
13:46:45.273 INFO: Sensor C# Properties [csharp] (done) | time=1ms
13:46:45.273 INFO: Sensor JavaXmlSensor [java]
13:46:45.274 INFO: Sensor JavaXmlSensor [java] (done) | time=1ms
13:46:45.274 INFO: Sensor HTML [web]
13:46:45.276 INFO: Sensor HTML [web] (done) | time=2ms
13:46:45.276 INFO: Sensor VB.NET Project Type Information [vbnet]
13:46:45.277 INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
13:46:45.277 INFO: Sensor VB.NET Properties [vbnet]
13:46:45.277 DEBUG: Project 'hello_world': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
13:46:45.277 DEBUG: Project 'hello_world': No Roslyn issues reports have been found.
13:46:45.277 INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
13:46:45.280 INFO: ------------- Run sensors on project
13:46:45.306 DEBUG: 'CXX verify analysis parameters' skipped because one of the required properties is missing
13:46:45.307 DEBUG: 'XSL transformation(s)' skipped because one of the required properties is missing
13:46:45.307 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
13:46:45.307 DEBUG: 'CXX RATS report import' skipped because there is no related rule activated in the quality profile
13:46:45.308 DEBUG: 'CXX Cppcheck report import' skipped because there is no related rule activated in the quality profile
13:46:45.308 DEBUG: 'CXX Infer report import' skipped because there is no related rule activated in the quality profile
13:46:45.308 DEBUG: 'CXX PC-lint report import' skipped because there is no related rule activated in the quality profile
13:46:45.309 DEBUG: 'CXX Dr. Memory report import' skipped because there is no related rule activated in the quality profile
13:46:45.309 DEBUG: 'CXX GCC compiler report import' skipped because there is no related rule activated in the quality profile
13:46:45.309 DEBUG: 'CXX Visual C++ compiler report import' skipped because there is no related rule activated in the quality profile
13:46:45.310 DEBUG: 'CXX Vera++ report import' skipped because there is no related rule activated in the quality profile
13:46:45.310 DEBUG: 'CXX Valgrind report import' skipped because there is no related rule activated in the quality profile
13:46:45.311 DEBUG: 'CXX Clang-Tidy report import' skipped because there is no related rule activated in the quality profile
13:46:45.311 DEBUG: 'CXX Clang Static Analyzer report import' skipped because there is no related rule activated in the quality profile
13:46:45.312 DEBUG: 'CXX other analyser report import' skipped because there is no related rule activated in the quality profile
13:46:45.312 DEBUG: 'CXX xUnit Test report import' skipped because one of the required properties is missing
13:46:45.312 DEBUG: 'CXX VSTest/NUnit Test report import' skipped because one of the required properties is missing
13:46:45.312 DEBUG: 'CXX Bullseye coverage report import' skipped because one of the required properties is missing
13:46:45.313 DEBUG: 'CXX Cobertura XML coverage report import' skipped because one of the required properties is missing
13:46:45.313 DEBUG: 'CXX Testwell CTC++ TXT coverage report import' skipped because one of the required properties is missing
13:46:45.313 DEBUG: 'CXX Visual Studio XML coverage report import' skipped because one of the required properties is missing
13:46:45.313 DEBUG: 'C#' skipped because there is no related file in current project
13:46:45.314 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project
13:46:45.314 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project
13:46:45.314 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project
13:46:45.314 DEBUG: 'VB.NET' skipped because there is no related file in current project
13:46:45.315 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project
13:46:45.315 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
13:46:45.315 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
13:46:45.315 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project
13:46:45.315 DEBUG: Sensors : Dependency-Check -> CXX -> Zero Coverage Sensor
13:46:45.315 INFO: Sensor Dependency-Check [dependencycheck]
13:46:45.315 INFO: Process Dependency-Check report
13:46:45.316 INFO: Using JSON-Reportparser
13:46:45.317 INFO: Dependency-Check JSON report does not exists. Please check property sonar.dependencyCheck.jsonReportPath:C:\jenkins\workspace\sqtest\${WORKSPACE}\dependency-check-report.json
13:46:45.317 INFO: JSON-Analysis skipped/aborted due to missing report file
13:46:45.319 DEBUG: JSON-Dependency-Check report does not exist.
java.io.FileNotFoundException: JSON-Dependency-Check report does not exist.
    at org.sonar.dependencycheck.report.JsonReportFile.getJsonReport(JsonReportFile.java:37)
    at org.sonar.dependencycheck.DependencyCheckSensor.parseAnalysis(DependencyCheckSensor.java:70)
    at org.sonar.dependencycheck.DependencyCheckSensor.execute(DependencyCheckSensor.java:150)
    at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
    at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:49)
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:360)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
    at org.sonarsource.scanner.cli.Main.main(Main.java:61)

13:46:45.319 INFO: Using XML-Reportparser
13:46:45.319 INFO: Dependency-Check XML report does not exists. Please check property sonar.dependencyCheck.xmlReportPath:C:\jenkins\workspace\sqtest\${WORKSPACE}\dependency-check-report.xml
13:46:45.319 INFO: XML-Analysis skipped/aborted due to missing report file
13:46:45.320 DEBUG: XML-Dependency-Check report does not exist.
java.io.FileNotFoundException: XML-Dependency-Check report does not exist.
    at org.sonar.dependencycheck.report.XmlReportFile.getXmlReport(XmlReportFile.java:37)
    at org.sonar.dependencycheck.DependencyCheckSensor.parseAnalysis(DependencyCheckSensor.java:84)
    at org.sonar.dependencycheck.DependencyCheckSensor.execute(DependencyCheckSensor.java:150)
    at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
    at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:49)
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:360)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
    at org.sonarsource.scanner.cli.Main.main(Main.java:61)

13:46:45.320 INFO: Dependency-Check HTML report does not exists. Please check property sonar.dependencyCheck.htmlReportPath:C:\jenkins\workspace\sqtest\${WORKSPACE}\dependency-check-report.html
13:46:45.320 INFO: HTML-Dependency-Check report does not exist.
13:46:45.320 DEBUG: HTML-Dependency-Check report does not exist.
java.io.FileNotFoundException: HTML-Dependency-Check report does not exist.
    at org.sonar.dependencycheck.report.HtmlReportFile.getHtmlReport(HtmlReportFile.java:37)
    at org.sonar.dependencycheck.DependencyCheckSensor.uploadHTMLReport(DependencyCheckSensor.java:100)
    at org.sonar.dependencycheck.DependencyCheckSensor.execute(DependencyCheckSensor.java:158)
    at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
    at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:49)
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:360)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
    at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
    at org.sonarsource.scanner.cli.Main.main(Main.java:61)

13:46:45.320 INFO: Process Dependency-Check report (done) | time=5ms
13:46:45.320 INFO: Sensor Dependency-Check [dependencycheck] (done) | time=5ms
13:46:45.320 INFO: Sensor CXX [cxx]
13:46:45.395 DEBUG: sonar.cxx.metric.api.file.suffixes: [.hxx, .hpp, .hh, .h]
13:46:45.400 DEBUG: 'Complex Functions' metric threshold (cyclomatic complexity): 10
13:46:45.400 DEBUG: 'Big Functions' metric threshold (LOC): 20
13:46:45.411 INFO: Load project repositories
13:46:45.426 DEBUG: GET 200 https://mars:9097/batch/project.protobuf?key=hello_world | time=15ms
13:46:45.431 INFO: Load project repositories (done) | time=20ms
13:46:45.431 DEBUG: 'src/main.cc' generated metadata with charset 'windows-1252'
13:46:45.448 DEBUG: global include directories: [C:\jenkins\workspace\sqtest\src]
13:46:45.455 DEBUG: global macros: [{__STDC__:1}, {__TIME__:"??:??:??"}, {__STDC_HOSTED__:1}, {__FILE__:"file"}, {__DATE__:"??? ?? ????"}, {__has_include:1}, {__cplusplus:201103L}, {__LINE__:1}]
13:46:45.455 DEBUG: process unit 'C:\jenkins\workspace\sqtest\src\main.cc'
13:46:45.464 DEBUG: [C:\jenkins\workspace\sqtest\src\main.cc:1]: preprocessor cannot find include file '#include <iostream>'
13:46:45.499 DEBUG: Not enough content in 'src/main.cc' to have CPD blocks, it will not be part of the duplication detection
13:46:45.508 INFO: Sensor CXX [cxx] (done) | time=188ms
13:46:45.508 INFO: Sensor Zero Coverage Sensor
13:46:45.515 INFO: Sensor Zero Coverage Sensor (done) | time=7ms
13:46:45.516 INFO: SCM Publisher is disabled
13:46:45.517 INFO: CPD Executor 1 file had no CPD blocks
13:46:45.517 INFO: CPD Executor Calculating CPD for 0 files
13:46:45.518 INFO: CPD Executor CPD calculation finished (done) | time=0ms
13:46:45.569 INFO: Analysis report generated in 50ms, dir size=165 KB
13:46:45.588 INFO: Analysis report compressed in 19ms, zip size=27 KB
13:46:45.588 INFO: Analysis report generated in c:\jenkins\workspace\sqtest\.scannerwork\scanner-report
13:46:45.588 DEBUG: Upload report
13:46:45.672 DEBUG: POST 200 https://mars:9097/api/ce/submit?projectKey=hello_world | time=83ms
13:46:45.673 INFO: Analysis report uploaded in 85ms
13:46:45.675 DEBUG: Report metadata written to c:\jenkins\workspace\sqtest\.scannerwork\report-task.txt
13:46:45.675 INFO: ANALYSIS SUCCESSFUL, you can browse https://mars:9097/dashboard?id=hello_world
13:46:45.675 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
13:46:45.675 INFO: More about the report processing at https://mars:9097/api/ce/task?id=AXmtpfbW9mvj4swXJMCo
13:46:45.678 DEBUG: Post-jobs : Final report
13:46:45.678 INFO: Executing post-job 'Final report'
13:46:45.678 WARN: Preprocessor: 1 include directive error(s). This is only relevant if parser creates syntax errors. The preprocessor searches for include files in the with 'sonar.cxx.includeDirectories' defined directories and order.
13:46:45.679 INFO: Analysis total time: 3.325 s
13:46:45.684 INFO: ------------------------------------------------------------------------
13:46:45.684 INFO: EXECUTION SUCCESS
13:46:45.684 INFO: ------------------------------------------------------------------------
13:46:45.684 INFO: Total time: 4.463s
13:46:45.714 INFO: Final Memory: 8M/40M
13:46:45.715 INFO: ------------------------------------------------------------------------
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: SUCCESS

On SQ server side the following appears in logs:

2021.05.27 11:46:45 INFO  ce[][o.s.c.t.CeWorkerImpl] Execute task | project=hello_world | type=REPORT | id=AXmtpfbW9mvj4swXJMCo | submitter=jenkins
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Extract report | status=SUCCESS | time=4ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist scanner context | status=SUCCESS | time=16ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Propagate analysis warnings from scanner report | status=SUCCESS | time=0ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Generate analysis UUID | status=SUCCESS | time=1ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load analysis metadata | status=SUCCESS | time=3ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Initialize | status=SUCCESS | time=0ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Build tree of components | components=3 | status=SUCCESS | time=6ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Validate project | status=SUCCESS | time=3ms
2021.05.27 11:46:45 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load quality profiles | status=SUCCESS | time=268ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load Quality gate | status=SUCCESS | time=6ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load new code period | status=SUCCESS | time=3ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Detect file moves | reportFiles=1 | dbFiles=1 | addedFiles=0 | status=SUCCESS | time=2ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load duplications | duplications=0 | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute cross project duplications | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute size measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute new coverage | status=SUCCESS | time=2ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute coverage measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute comment measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Copy custom measures | status=SUCCESS | time=1ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute duplication measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute size measures on new code | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute language distribution | status=SUCCESS | time=1ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute test measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute complexity measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Load measure computers | status=SUCCESS | time=1ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute Quality Profile status | status=SUCCESS | time=3ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Execute component visitors | status=SUCCESS | time=13ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Checks executed after computation of measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute Quality Gate measures | status=SUCCESS | time=1ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Compute Quality profile measures | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Generate Quality profile events | status=SUCCESS | time=2ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Generate Quality gate events | status=SUCCESS | time=2ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Check upgrade possibility for not analyzed code files. | status=SUCCESS | time=11ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist components | status=SUCCESS | time=74ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist analysis | status=SUCCESS | time=8ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist analysis properties | status=SUCCESS | time=8ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist measures | inserts=108 | status=SUCCESS | time=120ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist live measures | insertsOrUpdates=309 | status=SUCCESS | time=123ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist duplication data | insertsOrUpdates=0 | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist new ad hoc Rules | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist issues | cacheSize=0 bytes | inserts=0 | updates=0 | merged=0 | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist project links | status=SUCCESS | time=1ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist events | status=SUCCESS | time=14ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist sources | status=SUCCESS | time=2ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Persist cross project duplications | status=SUCCESS | time=0ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Enable analysis | status=SUCCESS | time=14ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Update last usage date of quality profiles | status=SUCCESS | time=13ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Purge db | status=SUCCESS | time=56ms
2021.05.27 11:46:46 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Index analysis | status=SUCCESS | time=482ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Update need issue sync for branch | status=SUCCESS | time=22ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Send issue notifications | newIssuesNotifs=0 | newIssuesDeliveries=0 | myNewIssuesNotifs=0 | myNewIssuesDeliveries=0 | changesNotifs=0 | changesDeliveries=0 | status=SUCCESS | time=3ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Publish task results | status=SUCCESS | time=0ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.s.ComputationStepExecutor] Trigger refresh of Portfolios and Applications | status=SUCCESS | time=0ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Webhooks | globalWebhooks=0 | projectWebhooks=0 | status=SUCCESS | time=2ms
2021.05.27 11:46:47 INFO  ce[AXmtpfbW9mvj4swXJMCo][o.s.c.t.CeWorkerImpl] Executed task | project=hello_world | type=REPORT | id=AXmtpfbW9mvj4swXJMCo | submitter=jenkins | status=SUCCESS | time=1431ms

The warning in SQ looks like this:

warning

We are using the sonarqube 8.9.0-community docker image, and there are no other C++ plugins active... It doesn't seem to be a problem on the scanner side, but how the report is processed on the SQ host, but i don't see any errors in the SQ log either, is there some way to see what happens after the log is uploaded?

Cheers,

guwirth commented 3 years ago

Hi @consulion,

thanks for trying it out.

I never saw this message before, maybe this is only with the docker image? We are downloading and using the community version in the ZIP file.

Looking into the LOG file I saw:

13:46:41.267 INFO: SonarQube Scanner 3.3.0.1492
13:46:41.270 INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
13:46:41.270 INFO: Windows 10 10.0 amd64
13:46:41.723 INFO: SonarQube server 8.9.0

13:46:42.332 DEBUG: Plugins:
13:46:42.332 DEBUG:   * C++ (Community) 2.0.2.2734 (cxx)

13:46:42.823 DEBUG: Available languages:
13:46:42.823 DEBUG:   * CXX => "cxx"
3:46:44.637 DEBUG: Declared extensions of language CXX were converted to sonar.lang.patterns.cxx : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h

13:46:45.280 INFO: ------------- Run sensors on project
13:46:45.308 DEBUG: 'CXX Cppcheck report import' skipped because there is no related rule activated in the quality profile

13:46:44.643 INFO: Indexing files...
13:46:44.643 INFO: Project configuration:
13:46:44.653 DEBUG: 'src\main.cc' indexed with language 'cxx'
13:46:44.654 INFO: 1 file indexed

13:46:45.315 INFO: Sensor Dependency-Check [dependencycheck]
13:46:45.319 DEBUG: JSON-Dependency-Check report does not exist.
java.io.FileNotFoundException: JSON-Dependency-Check report does not exist.

13:46:45.319 INFO: Using XML-Reportparser
13:46:45.320 DEBUG: XML-Dependency-Check report does not exist.
java.io.FileNotFoundException: XML-Dependency-Check report does not exist.

13:46:45.320 INFO: Sensor CXX [cxx]
13:46:45.448 DEBUG: global include directories: [C:\jenkins\workspace\sqtest\src]
13:46:45.455 DEBUG: global macros: [{__STDC__:1}, {__TIME__:"??:??:??"}, {__STDC_HOSTED__:1}, {__FILE__:"file"}, {__DATE__:"??? ?? ????"}, {__has_include:1}, {__cplusplus:201103L}, {__LINE__:1}]
13:46:45.455 DEBUG: process unit 'C:\jenkins\workspace\sqtest\src\main.cc'
13:46:45.508 INFO: Sensor CXX [cxx] (done) | time=188ms

13:46:45.684 INFO: ------------------------------------------------------------------------
13:46:45.684 INFO: EXECUTION SUCCESS
13:46:45.684 INFO: ------------------------------------------------------------------------
13:46:45.684 INFO: Total time: 4.463s
13:46:45.714 INFO: Final Memory: 8M/40M
13:46:45.715 INFO: ------------------------------------------------------------------------
guwirth commented 3 years ago

Hi @consulion,

I have found some clues but need to dig deeper to understand what they are doing here? Also don't understand why our integrations test are running without problems and what the difference is to your use case?

SONAR-13869 Add a flag in telemetry to know if there's some c/c++ unanalyzed code

https://github.com/SonarSource/sonarqube/commit/bc413ee3db73258a22059816bd4766bcea66a9ca#diff-23fc27f1064b266962e60af1215608f4773823edb6dbbc5058ddf35057afcb7f

Regards,

consulion commented 3 years ago

Hi @guwirth,

the warning seems to be misleading, I noticed I forgot to assign a quality profile to the hello_world project, after doing so, it detects 1 code smell through the cppcheck sensor (yet the warning is still shown).

The reason why our main project is not getting analyzed seems to be something else, we are using the Visual Studio report scanner, maybe something went wrong while changing the sonar-project properties for 2.0.x, but build+analysis takes quite some time, I'll let you know tomorrow.

Thanks again

guwirth commented 3 years ago

Hi @consulion,

it seem that SonarSource added a message if the community edition is reading an input file with file extension .c, .cc, .cpp, .cxx or .c++:

https://github.com/SonarSource/sonarqube/blob/master/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputComponentStore.java

5E5A1545-75FE-4F1C-9C33-67768E96AFE0

What happens if you select “Dismiss permanently”?

Regards,

consulion commented 3 years ago

Hi @guwirth,

everything is fine again, actually the regex for extracting warnings from our VS build log was missing, I was just misled by the new warning, after clicking 'dismiss permanently' it didn't appear anymore; i suppose this warning just appeared because we have a few 3rd party library files excluded from analysis. Sorry for the confusion and thanks for your help!

Cheers