I activated code-quality on one big repository, but this is not really useful for now
- there is too many errors reported
- it takes too long to be displayed, like 30 sec, so people won’t wait just to display it
- the widget is too small to view easily all the errors (you can’t filter the criticality).
I think that would be better to us to fix gradually the errors alongside when people touch files, so I like to know if that would be possible to run only on files that were modified in a merge request.
gitlab info
- self-hosted, free version
- version 17.5 for server and runners
# .gitlab-ci.yml
...
include:
- template: Code-Quality.gitlab-ci.yml
code_quality:
cache: []
rules:
- if: $CODE_QUALITY_DISABLED
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
Best