Sonarqube pull request analysis not showing any measures

Hi,

I am trying to setup Sonarqube pull request analysis on Azure DevOps (cloud service). I have the Sonarqube steps configured in our pipeline and although it works fine for branches, it (the same pipeline) does not seem to show any measures for pull requests.

So far, assuming that SQ does not show any measures in the new code section if the number of changed lines is less than 20, I made sure to add more than 20 lines of code (even code smells) and test but no luck:

The same when scanned as an individual branch, shows the measures correctly.

Below are the SQ details:
Edition: Enterprise
Version: 8.8 (build 42792)

Below are the additional properties that are passed to the scanner as a part of prepare analysis pipeline task:
sonar.scm.exclusions.disabled=true
sonar.exclusions
sonar.cs.opencover.reportsPaths

How can I figure out why PR analysis is simply not working, even though the PR base, branch and key are correctly taken?

Hi,

Welcome to the community!

Can you post the analysis logs from a PR analysis?

 
Ann

Sure, here are parts of the logs:

Analysis start:

2021-08-13T09:59:10.0524492Z ==============================================================================
2021-08-13T09:59:10.2314442Z [command]/usr/bin/dotnet /home/vsts/work/_tasks/SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157/4.21.0/dotnet-sonar-scanner-msbuild/SonarScanner.MSBuild.dll end
2021-08-13T09:59:10.3112851Z SonarScanner for MSBuild 5.2.1
2021-08-13T09:59:10.3114416Z Using the .NET Core version of the Scanner for MSBuild
2021-08-13T09:59:10.3960708Z Post-processing started.
2021-08-13T09:59:10.8286686Z 09:59:10.827  09:59:10.827  WARNING: File '/home/vsts/.nuget/packages/microsoft.net.test.sdk/16.4.0/build/netcoreapp2.1/Microsoft.NET.Test.Sdk.Program.cs' is not located under the root directory '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM' and will not be analyzed.
2021-08-13T09:59:10.8288580Z 09:59:10.828  09:59:10.828  WARNING: File '/home/vsts/.nuget/packages/mstest.testadapter/2.0.0/build/_common/Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll' is not located under the root directory '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM' and will not be analyzed.
2021-08-13T09:59:10.8290046Z 09:59:10.828  09:59:10.828  WARNING: File '/home/vsts/.nuget/packages/mstest.testadapter/2.0.0/build/_common/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll' is not located under the root directory '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM' and will not be analyzed.
2021-08-13T09:59:10.8291899Z 09:59:10.828  09:59:10.828  WARNING: File '/home/vsts/.nuget/packages/mstest.testadapter/2.0.0/build/netcoreapp1.0/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll' is not located under the root directory '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM' and will not be analyzed.
2021-08-13T09:59:10.9430491Z Calling the SonarScanner CLI...
2021-08-13T09:59:11.2308850Z INFO: Scanner configuration file: /home/vsts/work/_tasks/SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157/4.21.0/dotnet-sonar-scanner-msbuild/sonar-scanner-4.6.1.2450/conf/sonar-scanner.properties
2021-08-13T09:59:11.2310377Z INFO: Project root configuration file: /home/vsts/work/1/.sonarqube/out/sonar-project.properties
2021-08-13T09:59:11.3314872Z INFO: SonarScanner 4.6.1.2450
2021-08-13T09:59:11.3319639Z INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
2021-08-13T09:59:11.3323636Z INFO: Linux 5.4.0-1055-azure amd64
2021-08-13T09:59:11.7693279Z INFO: User cache: /home/vsts/.sonar/cache
2021-08-13T09:59:13.1271409Z INFO: Scanner configuration file: /home/vsts/work/_tasks/SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157/4.21.0/dotnet-sonar-scanner-msbuild/sonar-scanner-4.6.1.2450/conf/sonar-scanner.properties
2021-08-13T09:59:13.1285883Z INFO: Project root configuration file: /home/vsts/work/1/.sonarqube/out/sonar-project.properties
2021-08-13T09:59:13.1627363Z INFO: Analyzing on SonarQube server 8.8.0
2021-08-13T09:59:13.1629492Z INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
2021-08-13T09:59:13.6687479Z INFO: Load global settings
2021-08-13T09:59:13.8927980Z INFO: Load global settings (done) | time=225ms
2021-08-13T09:59:13.9005565Z INFO: Server id: BE220B6E-AXNZmc1LcgsRTafmYHWW
2021-08-13T09:59:13.9057037Z INFO: User cache: /home/vsts/.sonar/cache
2021-08-13T09:59:13.9099091Z INFO: Load/download plugins
2021-08-13T09:59:13.9102613Z INFO: Load plugins index
2021-08-13T09:59:13.9891311Z INFO: Load plugins index (done) | time=79ms
2021-08-13T09:59:19.7057359Z INFO: Load/download plugins (done) | time=5796ms
2021-08-13T09:59:20.4865281Z INFO: Loaded core extensions: developer-scanner
2021-08-13T09:59:20.9091694Z INFO: JavaScript/TypeScript frontend is enabled
2021-08-13T09:59:21.1109764Z INFO: Process project properties
2021-08-13T09:59:21.2230384Z INFO: Process project properties (done) | time=112ms
2021-08-13T09:59:21.2233828Z INFO: Execute project builders
2021-08-13T09:59:21.3357260Z INFO: Execute project builders (done) | time=110ms
2021-08-13T09:59:21.3361467Z INFO: Project key: coreservices
2021-08-13T09:59:21.3363221Z INFO: Base dir: /home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM
2021-08-13T09:59:21.3363931Z INFO: Working dir: /home/vsts/work/1/.sonarqube/out/.sonar
2021-08-13T09:59:21.4757021Z INFO: Load project settings for component key: 'coreservices'
2021-08-13T09:59:21.5147887Z INFO: Load project settings for component key: 'coreservices' (done) | time=39ms
2021-08-13T09:59:21.5222825Z INFO: Load project branches
2021-08-13T09:59:21.6214561Z INFO: Load project branches (done) | time=99ms
2021-08-13T09:59:21.6222541Z INFO: Load project pull requests
2021-08-13T09:59:21.6968347Z INFO: Load project pull requests (done) | time=75ms
2021-08-13T09:59:21.6970632Z INFO: Load branch configuration
2021-08-13T09:59:21.7014789Z INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration.
2021-08-13T09:59:21.7039677Z INFO: Load branch configuration (done) | time=7ms
2021-08-13T09:59:21.7616720Z INFO: Auto-configuring with CI 'Azure DevOps'
2021-08-13T09:59:21.7628345Z INFO: Load quality profiles
2021-08-13T09:59:21.8618841Z INFO: Load quality profiles (done) | time=98ms
2021-08-13T09:59:21.8645294Z INFO: Auto-configuring with CI 'Azure DevOps'
2021-08-13T09:59:21.8671732Z INFO: Load active rules
2021-08-13T09:59:24.4246586Z INFO: Load active rules (done) | time=2553ms
2021-08-13T09:59:24.4525274Z INFO: Exclusions based on SCM info is disabled by configuration
2021-08-13T09:59:24.4865118Z INFO: Pull request 279155 for merge into workitems/SS/BaseBranch63 from workitems/SS/TestFB63
2021-08-13T09:59:24.5131919Z INFO: SCM collecting changed files in the branch
2021-08-13T09:59:24.7955665Z INFO: SCM collecting changed files in the branch (done) | time=277ms
2021-08-13T09:59:24.8780165Z INFO: Indexing files...


**The files changed were in the WebApp project, hence posting only that part:**

2021-08-13T09:59:36.9020090Z INFO: ------------- Run sensors on module EY.IAD.CoreServices.WebApp
2021-08-13T09:59:36.9094676Z INFO: JavaScript/TypeScript frontend is enabled
2021-08-13T09:59:37.0551649Z INFO: Sensor HTL [aemrules]
2021-08-13T09:59:37.0596563Z INFO: 0 source files to be analyzed
2021-08-13T09:59:37.0629684Z INFO: Sensor HTL [aemrules] (done) | time=3ms
2021-08-13T09:59:37.0630757Z INFO: Sensor CSS Metrics [cssfamily]
2021-08-13T09:59:37.0781603Z INFO: 0/0 source files have been analyzed
2021-08-13T09:59:38.3902942Z INFO: Sensor CSS Metrics [cssfamily] (done) | time=1328ms
2021-08-13T09:59:38.3903979Z INFO: Sensor CSS Rules [cssfamily]
2021-08-13T09:59:38.3905509Z INFO: 163 source files to be analyzed
2021-08-13T09:59:42.3585417Z INFO: 163/163 source files have been analyzed
2021-08-13T09:59:42.3586316Z INFO: Sensor CSS Rules [cssfamily] (done) | time=3965ms
2021-08-13T09:59:42.3587102Z INFO: Sensor C# Project Type Information [csharp]
2021-08-13T09:59:42.3587526Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2021-08-13T09:59:42.3587943Z INFO: Sensor C# Properties [csharp]
2021-08-13T09:59:42.3588284Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2021-08-13T09:59:42.3588633Z INFO: Sensor JavaXmlSensor [java]
2021-08-13T09:59:42.3588960Z INFO: Sensor JavaXmlSensor [java] (done) | time=3ms
2021-08-13T09:59:42.3589343Z INFO: Sensor Linting sensor for Javascript files [eslintplugin]
2021-08-13T09:59:42.3589729Z WARN: Path to eslint not defined or not found. Skipping eslint analysis.
2021-08-13T09:59:42.3590159Z INFO: Sensor Linting sensor for Javascript files [eslintplugin] (done) | time=2ms
2021-08-13T09:59:42.3590534Z INFO: Sensor JavaScript analysis [javascript]
2021-08-13T09:59:43.4509916Z INFO: Deploying custom rules bundle jar:file:/home/vsts/.sonar/cache/58217f4b9448dc3527b59fd864356644/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /home/vsts/work/1/.sonarqube/out/.sonar/.sonartmp/eslint-bridge-bundle/package/custom-rules1448749828953018092
2021-08-13T09:59:45.1763303Z INFO: 127 source files to be analyzed
2021-08-13T09:59:55.1779828Z INFO: 10/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/Chart.js/Chart.bundle.js
2021-08-13T10:00:05.4413368Z INFO: 10/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/Chart.js/Chart.bundle.js
2021-08-13T10:00:15.1783604Z INFO: 19/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/jquery/jquery.slim.js
2021-08-13T10:00:25.1787688Z INFO: 28/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/jquery-validation/dist/jquery.validate.js
2021-08-13T10:00:35.1787490Z INFO: 49/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/moment.js/locales.js
2021-08-13T10:00:45.1792363Z INFO: 57/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/jquery/jquery.js
2021-08-13T10:00:55.1796779Z INFO: 79/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/bootstrap/dist/js/bootstrap.js
2021-08-13T10:01:05.1796297Z INFO: 97/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/popper/esm/popper.js
2021-08-13T10:01:15.1802692Z INFO: 110/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/Chart.js/Chart.js
2021-08-13T10:01:25.1805547Z INFO: 113/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/jqueryui/jquery-ui.js
2021-08-13T10:01:35.1809566Z INFO: 113/127 files analyzed, current file: EY.IAD.PM.Gui.Provisioning/wwwroot/lib/jqueryui/jquery-ui.js
2021-08-13T10:01:44.6948281Z INFO: 127/127 source files have been analyzed
2021-08-13T10:01:44.6998712Z INFO: Sensor JavaScript analysis [javascript] (done) | time=122338ms
2021-08-13T10:01:44.6999398Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2021-08-13T10:01:44.7086001Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=14ms
2021-08-13T10:01:44.7086744Z INFO: Sensor JSON Squid Sensor [JSON]
2021-08-13T10:01:44.7098212Z INFO: 13 source files to be analyzed
2021-08-13T10:01:44.7833364Z INFO: Sensor JSON Squid Sensor [JSON] (done) | time=71ms
2021-08-13T10:01:44.7834183Z INFO: 13/13 source files have been analyzed
2021-08-13T10:01:44.7834714Z INFO: Sensor HTML [web]
2021-08-13T10:01:45.2069834Z INFO: Sensor HTML [web] (done) | time=424ms
2021-08-13T10:01:45.2070899Z INFO: Sensor VB.NET Project Type Information [vbnet]
2021-08-13T10:01:45.2092285Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
2021-08-13T10:01:45.2093116Z INFO: Sensor VB.NET Properties [vbnet]
2021-08-13T10:01:45.2093589Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2021-08-13T10:01:45.2094117Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2021-08-13T10:01:45.2099785Z 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
2021-08-13T10:01:45.2104892Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2021-08-13T10:01:45.2110066Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms

**And finally, the sensors run on the project show that the files "ProvisioningController" and "HomeController" were detected as changed but without having changed lines.. These are the exact two files that were changed as a part of the PR.**

2021-08-13T10:02:23.3139201Z INFO: ------------- Run sensors on project
2021-08-13T10:02:23.3280736Z INFO: Sensor C# [csharp]
2021-08-13T10:02:23.3392831Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/17/output-cs'
2021-08-13T10:02:23.5071312Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/4/output-cs'
2021-08-13T10:02:23.6121620Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/11/output-cs'
2021-08-13T10:02:23.6582060Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/9/output-cs'
2021-08-13T10:02:23.7972782Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/7/output-cs'
2021-08-13T10:02:23.9302892Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/16/output-cs'
2021-08-13T10:02:23.9334881Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/18/output-cs'
2021-08-13T10:02:23.9340289Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/2/output-cs'
2021-08-13T10:02:24.0094737Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/3/output-cs'
2021-08-13T10:02:24.0201229Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/15/output-cs'
2021-08-13T10:02:24.1172432Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/12/output-cs'
2021-08-13T10:02:24.1218491Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/1/output-cs'
2021-08-13T10:02:24.1647060Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/6/output-cs'
2021-08-13T10:02:24.1773394Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/13/output-cs'
2021-08-13T10:02:24.1853405Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/14/output-cs'
2021-08-13T10:02:24.2387010Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/0/output-cs'
2021-08-13T10:02:24.2424060Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/5/output-cs'
2021-08-13T10:02:24.2447919Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/10/output-cs'
2021-08-13T10:02:24.2478938Z INFO: Importing results from 5 proto files in '/home/vsts/work/1/.sonarqube/out/8/output-cs'
2021-08-13T10:02:24.3809933Z INFO: Importing 20 Roslyn reports
2021-08-13T10:02:24.7684912Z INFO: Found 18 MSBuild C# projects: 10 MAIN projects. 1 TEST project. 7 with no MAIN nor TEST files.
2021-08-13T10:02:24.7685411Z INFO: Sensor C# [csharp] (done) | time=1441ms
2021-08-13T10:02:24.7685724Z INFO: Sensor C# Tests Coverage Report Import [csharp]
2021-08-13T10:02:24.7702380Z INFO: Parsing the OpenCover report /home/vsts/work/1/s/TestResults/Coverage/coverage.opencover.xml
2021-08-13T10:02:24.8110343Z INFO: Adding this code coverage report to the cache for later reuse: /home/vsts/work/1/s/TestResults/Coverage/coverage.opencover.xml
2021-08-13T10:02:24.8117784Z INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=43ms
2021-08-13T10:02:24.8120985Z INFO: Sensor Dependency-Check [dependencycheck]
2021-08-13T10:02:24.8124391Z INFO: Process Dependency-Check report
2021-08-13T10:02:24.8135195Z INFO: Using JSON-Reportparser
2021-08-13T10:02:24.8147023Z INFO: Dependency-Check JSON report does not exists. Please check property sonar.dependencyCheck.jsonReportPath:/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM/${WORKSPACE}/dependency-check-report.json
2021-08-13T10:02:24.8150248Z INFO: JSON-Analysis skipped/aborted due to missing report file
2021-08-13T10:02:24.8152769Z INFO: Using XML-Reportparser
2021-08-13T10:02:24.8154433Z INFO: Dependency-Check XML report does not exists. Please check property sonar.dependencyCheck.xmlReportPath:/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM/${WORKSPACE}/dependency-check-report.xml
2021-08-13T10:02:24.8157191Z INFO: XML-Analysis skipped/aborted due to missing report file
2021-08-13T10:02:24.8158928Z INFO: Dependency-Check HTML report does not exists. Please check property sonar.dependencyCheck.htmlReportPath:/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM/${WORKSPACE}/dependency-check-report.html
2021-08-13T10:02:24.8160505Z INFO: HTML-Dependency-Check report does not exist.
2021-08-13T10:02:24.8161704Z INFO: Process Dependency-Check report (done) | time=3ms
2021-08-13T10:02:24.8163304Z INFO: Sensor Dependency-Check [dependencycheck] (done) | time=4ms
2021-08-13T10:02:24.8163976Z INFO: Sensor Zero Coverage Sensor
2021-08-13T10:02:25.0515849Z INFO: Sensor Zero Coverage Sensor (done) | time=236ms
2021-08-13T10:02:25.0797751Z INFO: SCM Publisher SCM provider for this project is: git
2021-08-13T10:02:25.0812231Z INFO: SCM Publisher 2 source files to be analyzed
2021-08-13T10:02:25.3428636Z INFO: SCM Publisher 2/2 source files have been analyzed (done) | time=261ms
2021-08-13T10:02:25.6731201Z INFO: CPD Executor 193 files had no CPD blocks
2021-08-13T10:02:25.6732890Z INFO: CPD Executor Calculating CPD for 948 files
2021-08-13T10:02:26.5022255Z WARN: Too many duplication references on file EY.IAD.PM.DataAccess.SqlServer/MSPlatform_Config/Migrations/20200527104431_Start.cs for block at line 2694. Keep only the first 100 references.
2021-08-13T10:02:26.5045729Z WARN: Too many duplication references on file EY.IAD.PM.DataAccess.SqlServer/MSPlatform_Config/Migrations/20200527104431_Start.cs for block at line 2694. Keep only the first 100 references.
2021-08-13T10:02:27.1435615Z WARN: Too many duplication groups on file EY.IAD.PM.Gui.Provisioning/wwwroot/lib/moment.js/locales.js. Keep only the first 100 groups.
2021-08-13T10:02:29.0164715Z WARN: Too many duplication groups on file EY.IAD.PM.Gui.Provisioning/wwwroot/lib/moment.js/moment-with-locales.js. Keep only the first 100 groups.
2021-08-13T10:02:29.4441424Z INFO: CPD Executor CPD calculation finished (done) | time=3771ms
2021-08-13T10:02:29.5826786Z INFO: SCM writing changed lines
2021-08-13T10:02:29.5983023Z WARN: File '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM/EY.IAD.PM.Gui.Provisioning/Controllers/HomeController.cs' was detected as changed but without having changed lines
2021-08-13T10:02:29.6003732Z WARN: File '/home/vsts/work/1/s/MiddleLayerVSSolution/EY.IAD.PM/EY.IAD.PM.Gui.Provisioning/Controllers/ProvisioningController.cs' was detected as changed but without having changed lines
2021-08-13T10:02:29.6007914Z INFO: SCM writing changed lines (done) | time=18ms
2021-08-13T10:02:29.6323281Z INFO: Analysis report generated in 156ms, dir size=4 MB
2021-08-13T10:02:30.6978991Z INFO: Analysis report compressed in 1065ms, zip size=1 MB
2021-08-13T10:02:31.4987944Z INFO: Analysis report uploaded in 801ms
2021-08-13T10:02:31.5005634Z INFO: ANALYSIS SUCCESSFUL, you can browse https://sonarqube.ey.com/dashboard?id=coreservices&pullRequest=279155
2021-08-13T10:02:31.5008014Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
2021-08-13T10:02:31.5010085Z INFO: More about the report processing at https://sonarqube.ey.com/api/ce/task?id=AXs-9pAdBas2SR762BAi
2021-08-13T10:02:41.9224047Z INFO: Analysis total time: 3:21.439 s
2021-08-13T10:02:41.9247483Z INFO: ------------------------------------------------------------------------
2021-08-13T10:02:41.9249238Z INFO: EXECUTION SUCCESS

Pls let me know if you require anything else. Appreciate the help!

Hi,

I think that message about “without any changed lines” is going to be about what we’re getting from the SCM. I’m going to flag this for more expert attention. And at the same time, can you provide some data about what did change in those files?

 
Ann

Sure. I added the following line that results in a code smell “Remove this formatting call and simply use the input string.”, for about 50 times i.e. I was expecting 50 code smells:

_logger.LogInformation(string.Format(“Template not found”));

Hi,

Could you pls let me know if there is any update regarding the above issue? thanks!

Since my search lead me to this discussion, but there is no solution present, let me add, what we figured out, when having a similar issue:
In our case, we used Git submodules and the files in the Git submodule are excluded with exactly the same warning as in your example.

See also Git submodule excluded from analysis.

Hi @jochen.haag ,
I’m not sure I understand correctly:
did setting sonar.scm.exclusions.disabled=true solve your issue?
If not could you share what is your setup:
SQ version, scanner version, scanner config used and how are your submodules structured?