Finally we solved.
The problem was Bitrise make the git clone on the base branch and do a merge in it. Sonar then can find any differences between branches and can’t check code.
Now we do the checkout manually and the validation works fine.
Thank you!