Why is this happening

Hello @minoseah629 and welcome to the community

You can read how the Sonar .NET static code analysis works here.

Some of the necessary analysis metadata is stored on disk in protobuf and JSON files. This is why you see :

Regarding:

I am not sure why this test file is not indexed by the scanner - please give us the verbose logs for the scanner steps and msbuild if you want to investigate further (see instructions for scanner step).

To get information from the source code management (SCM) system, such as git. This is used in SonarQube.