How to prevent SonarQube from treating moved classes as new code?

Hi,

The ticket you’ve found is about detecting file move in PRs, but you’ve mentioned your main branch. Is the file move not being detected in the branch, or in PRs on the branch?

If the latter, this is going to be about the SCM data available to analysis. Could you provide 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