Sudden change in quality gate for PRs, "New code" filter is not working

Hey there.

Alright. After doing some digging, I expect that this is a combination of two things:

  • The Javascript/Typescript analyzer recently added a lot of new rules (and even when there are new rules, backdating kicks in, explaining why you see dates of “1 year ago”)
  • I would guess that you haven’t reanalyzed your main branch (or the branch being targeted by your PR) since these rules were added

Can you confirm that second part? You could also delete the existing PR analysis in SonarQube Cloud

Reanalyze your target branch, and then kick off a new PR analysis to see if that fixes it.

It does represent a real issue we should fix, but I’d like to confirm it’s this issue first.