SonarQube: How can I run a full scan on a branch instead of a diff?

Hi,

When SQ is run on a branch, only a diff of that branch is produced, but I want to have a full analysis of the branch.

Is that possible, and, if so, how can I do that?

Make sure you’re analyzing as a long-lived branch in these cases.

Thanks, is it possible to mark a branch as being a long-lived branch so it will do a full scan on the branch?

Hi,

Whether a branch is long-lived or short-lived is determined by what the long-lived branch pattern was at the time of the branch’s initial analysis. If the branch name matched the long-lived regex, then it’s created as a long-lived branch. If not, it defaults to being a short-lived branch.

Unfortunately, branch type is immutable. Once the branch is created, it is what it is. To change type, you’ll need to delete the branch, make sure the long-lived branch pattern is updated, and then re-analyze.

 
HTH,
Ann