How to scan individual .net projects code with Pull request decoration in a single repository

Hi,

Welcome to the community!

This seems to be two different questions:

  • How to analyze projects in a solution independently
  • Detection of new code

    its not scanning new lines of code rather its scanning entire solution.

We try to keep it to one topic per thread. Otherwise it gets messy, fast. I’ll touch on both questions, but reserve the right to ask you to create a new thread if you have followup questions on both.

For the first, as you note, the entire project will need to be built, but you can narrow your analysis to one project at a time. The result would be a lot more CI cycles, though.

For the second, it’s quite likely you have some warnings in your analysis log about detection of SCM data. Can you check? Share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann