How do I trigger a full-codebase scan?

I think it’s also the same for Branch analysis. Only new changes on the branch are scanned. The “New Code”/“Overall Code” tabs in the screenshot are only available on the “Main Branch” view.

(I’ve got a similar problem that the code scanned via CI doesn’t include all the code, not even what is checked with Automated scan: Code Inclusion for mvn sonar scanned project)