Hello @lrozenblyum, no need to provide logs, I’ve actually been able to reproduce it myself. I’m going to flag this for the devs to look at, right now I’m not sure if this is intended or not, or if perhaps there’s room for improving the clarity of the warning. Thanks for sharing this!
I can confirm @Stan that after we promoted the fix for the warning [WARNING] Invalid character encountered in file … to the main branch and it has been analyzed, in other branches is also disappears after they’re reanalyzed.
Hey @lrozenblyum, indeed what you just described is part of the unintended behavior that we are fixing: the warnings from the main branch are shown on other branches/PRs too. The moment you got rid of the warning on the main branch, it also doesn’t pop up on other branches.
Hey @lrozenblyum, I just checked and the fix is already live, so I suspect that what you saw (fixing the warning in main > warning also disappeared on other branches) might have been caused by other branches rebasing/merging main and being analyzed again. Could you please double-check if it really is unintended that the warning no longer shows up on the other branches? Could you try, for example, reverting your fix for the warning in a branch and seeing if the warning pops up in that branch correctly?
I’ve created a branch from the main branch where I reverted the fix, and analyzed it.
SonarQube Cloud shows proper warning for this branch with the issue. Main branch is shown without warnings.