Hi all, having a terrible time trying to get over 0% coverage for C, C++, and python code in one repository. I can get the project to analyze, but only three of my 100+ issues are C family errors (we definitely are not that clean) and I cannot get over 0% coverage no matter what I try. Any help is appreciated. Current pipeline configuration with bitbucket:
Analyzing your logs should also be useful if you doubt your C/C++ analsyis results. Do you see all the files you see to expect (sonar-scanner -X helps here). Are you performing a clean build to produce your compile commands?
14:51:35.372 DEBUG Analyzing file: file:///opt/atlassian/pipelines/agent/build/build/Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts
14:51:35.373 DEBUG Analyzing file "/opt/atlassian/pipelines/agent/build/build/Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts" with linterId "default"
14:51:35.373 DEBUG Parsing /opt/atlassian/pipelines/agent/build/build/Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts with @typescript-eslint/parser
14:51:35.374 DEBUG Failed to parse /opt/atlassian/pipelines/agent/build/build/Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts with TypeScript parser: Invalid character.
14:51:35.374 WARN Failed to parse file [Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts] at line 1: Invalid character.
14:51:35.374 DEBUG Cache entry created for key 'jssecurity:ucfgs:SEQ:10.20.0.29356:evidentvascular_evi-shared-libs:Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts' containing 0 file(s)
14:51:35.374 DEBUG Cache entry created for key 'jssecurity:ucfgs:JSON:10.20.0.29356:evidentvascular_evi-shared-libs:Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts'
14:51:35.374 DEBUG Cache entry created for key 'js:filemetadata:10.20.0.29356:evidentvascular_evi-shared-libs:Apps/DDS/CMakeFiles/json_subscriber_app_autogen.dir/compiler_depend.ts'
14:51:35.374 DEBUG Cache strategy set to 'WRITE_ONLY' for file 'CMakeFiles/Nightly.dir/compiler_depend.ts' as current analysis requires all files to be analyzed
14:51:35.374 DEBUG Analyzing file: file:///opt/atlassian/pipelines/agent/build/build/CMakeFiles/Nightly.dir/compiler_depend.ts
14:51:35.375 DEBUG Analyzing file "/opt/atlassian/pipelines/agent/build/build/CMakeFiles/Nightly.dir/compiler_depend.ts" with linterId "default"
14:51:35.376 DEBUG Parsing /opt/atlassian/pipelines/agent/build/build/CMakeFiles/Nightly.dir/compiler_depend.ts with @typescript-eslint/parser
14:51:35.376 DEBUG Failed to parse /opt/atlassian/pipelines/agent/build/build/CMakeFiles/Nightly.dir/compiler_depend.ts with TypeScript parser: Invalid character.
14:51:35.376 WARN Failed to parse file [CMakeFiles/Nightly.dir/compiler_depend.ts] at line 1: Invalid character.
14:51:35.376 DEBUG Cache entry created for key 'jssecurity:ucfgs:SEQ:10.20.0.29356:evidentvascular_evi-shared-libs:CMakeFiles/Nightly.dir/compiler_depend.ts' containing 0 file(s)
14:51:35.376 DEBUG Cache entry created for key 'jssecurity:ucfgs:JSON:10.20.0.29356:evidentvascular_evi-shared-libs:CMakeFiles/Nightly.dir/compiler_depend.ts'
14:51:35.376 DEBUG Cache entry created for key 'js:filemetadata:10.20.0.29356:evidentvascular_evi-shared-libs:CMakeFiles/Nightly.dir/compiler_depend.ts'
14:51:35.376 DEBUG Cache strategy set to 'WRITE_ONLY' for file 'eviCommon/version/tests/CMakeFiles/evi_version_test.dir/compiler_depend.ts' as current analysis requires all files to be analyzed