Skip to content

Gitlab code quality report must use forward slash in paths #20305

@mathieugouin

Description

@mathieugouin

Summary

(issue was originally discussed in #14732 )

If the gitlab report is ran on a windows host, the generated paths in the json file have backslashes (\).

However, gitlab does not accept backslashes in path for the report to work, they have to be forward slashes (/).

The command to reproduce the problem (must run on a windows host):

ruff check --exit-zero --no-cache --output-format gitlab --output-file python-gl-codequality.json

Version

ruff 0.12.11 (c2bc15bc1 2025-08-28)

Metadata

Metadata

Assignees

Labels

diagnosticsRelated to reporting of diagnostics.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions