Code quality report does not compare to previous state


we’ve added simple support for python-sonar but the Code Quality Widget (and report) always shows “Code quality degraded” and lists all issues for the code base. Eg. I edited one file in given MR, but still see all issues found by sonar linter.

Expected: Code Quality Widget shows only issues introduced in the particular MR, in other words a diff between current state and state after merging.


  - template: Code-Quality.gitlab-ci.yml

  stage: linting
  needs: [ ]
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' 
    - docker
    paths: [ gl-code-quality-report.json ]


version: "2"
    enabled: true
  • What version are you on? Are you using self-managed or

      • GitLab Enterprise Edition [14.5.2-ee]:*
    • Runner ?
  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    Official docs Code Quality | GitLab, google, gitlab forum

I noticed that possibly related feature - a diff view Code Quality | GitLab
in only for Ultimate plan.

does it mean the whole Code Quality Widget is actually useful (comparing issues count to the historical state of base branch) only for Ultimate tier?