I use sln to build a multiple modules C# code with the flow steps, all steps work successful, but sonarqube got “The main branch has no lines of code”.
INFO: 1111 files ignored because of scm ignore settings
SonarQube tries to exclude files based on what it finds in your .gitignore file – you might want to make sure you don’t have some unnecessarily large ignore pattern configured (or share your .gitignore file so we can check it out`.
In the meantime, you can set the sonar.scm.exclusions.disabled=true analysis parameter in order to make sure your files are indexed.
Hi @annpeter ,
I’m not sure I understood your question. If you’re trying to find out which entry in the .gitignore cause the scanner to ignore all the files, we wouldn’t be able to answer that.
The scanner uses git to load the list of files are not ignored without interpreting directly the file.
We have recently found that there is a bug related to submodules, causing many files to be ignored. There are no other known problems which doesn’t mean there couldn’t be other problems.