Some of the files not being analyzed and no lines of code are found in them

Hi,

In my project most of the code is being analyzed without an issue, however there are some subpaths, where .cs files are discovered (one can drill down to this files in the SQ portal) but no lines of code are recognized. Some of the files can be found in the log as SQ is not able to find the blame files, some are not mentioned and in SQ portal one can find information about git commits – so the blame stuff is not related to the issue.

How can I start fixing this issue, which part of the analysis log I should post here? (it has around 7k lines, so I don’t think that I should paste the whole thing…)

  • Azure DevOps Server 2019 update 1
  • SonarQube Developer Edition Version 8.3.1 (build 34397)
  • SonarScanner for MSBuild 4.9.

Hello @ldl

Definitely do not paste the 7K lines, but feel free to attached the entire log zipped.
Also if you can point at one file that has the problem you mention so that we can narrow down the logs investigation to that one file. I will have a look.

Olivier

I’ve attached the log.

Following files can be used as an example
.\src\odw\Utilities\Omada.ODW.Logging\syssislog.cs is in the log (no blame information)
.\src\odw\Utilities\Omada.ODW.Logging\LogProviderForOIS.cs is not in the log

log_98_119140.zip (90.8 KB)

Hello @ldl

Sorry I lost track of this thread. I had a look at your logs and saw nothing obvious that would explain this.

Thanks for the 2 files to narrow down. You’re stating that syssislog.cs is in the logs and LogProviderForIOS.cs is not. I actually don’t find any trace of either file in the log you attached

Could you explain what you mean by “I can drill down to the file in the SQ portal, but I don’t see any LoCs” ? Is the file empty ?
Do you have some files in the Omada.ODW.Logging MSBuild project that are properly displayed in SonarQube or do you have the same problem with all the files of that MSBuild project ?

Can you provide a SonarQube screenshot of the 2 files you have isolated in the Omada.ODW.Logging sub project ?

If all files of that Omada.ODW.Logging MSBuild project have the same problem, can you attach the Omada.ODW.Logging .csproj for inspection?

Olivier

The file sysssislog.cs is in the line 5491 of the log. Attached the csproj file.Omada.ODW.Logging.csproj.txt (4.3 KB)

You can see in the portal, that there is no Lines of Code in the Omada.ODW.Logging folder
image

Inside, there are files in which we are interested in
image
Inside of the file you can see code, number of lines and also who has written them
image

I don’t understand this question: "Do you have some files in the Omada.ODW.Logging MSBuild project that are properly displayed in SonarQube or do you have the same problem with all the files of that MSBuild project ?”