The main branch has no code

Hi @toanvo729,

From the logs, it looks like there is only one MSBuild project file and it contains both product and test code. This is causing the scanner to treat it all as test code, leading to warning about there being no code (and presumably no issues reported in SonarQube either).

See this thread for more information about how the categorisation of code as test/product code is currently done by the Scanner for MSBuild, and how to tell the scanner to treat the whole project file as source code.

1 Like