Unit tests coverage flags parenthesis as uncovered code

Hello

I have this server version Enterprise Edition v2025.1.7 (121414)

The azure devops preparation task is configured as:

- task: SonarQubePrepare@6.3.2

  displayName: 'Prepare analysis on SonarQube'

  enabled: 'true'

  inputs:

    SonarQube: SonarQube

    scannerMode: MSBuild

    configMode: manual

    projectKey: 'MyProjKey'

    projectName: 'MyProjName'

    extraProperties: |

      sonar.c.file.suffixes=-

      sonar.cpp.file.suffixes=-

      sonar.objc.file.suffixes=-

      sonar.python.file.suffixes=-

      sonar.cs.vstest.reportsPaths=$(Common.TestResultsDirectory)\\\*\*\\\*.trx

   sonar.cs.vscoveragexml.reportsPaths=$(Common.TestResultsDirectory)\\\*\*\\\*.coveragexml

      sonar.qualitygate.wait=true

      sonar.qualitygate.timeout=600

After succesfull analysis, I see code that is just parenthesis flagged as uncovered code, why ? and how can I fix this ?:

Hey @mihai_onoprienco, welcome to the Community! The SonarScanner receives coverage data from your coverage report, which you generate during the build/test. If SonarQube says this line is uncovered, it’s most likely because the coverage report says so. Can you check the coverage report (.coveragexml files)?