Code quality report does not compare to previous state

Hello,

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.

Details

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

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

.codeclimate.yml

version: "2"
plugins:
  sonar-python:
    enabled: true
  • What version are you on? Are you using self-managed or GitLab.com?

      • 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?