Skip to content

GitLab codequality report can't be uploaded as an artifact if all checks passed #2617

@Imbuzi

Description

@Imbuzi

Summary

There is a bug when using ty check --output-format=gitlab when there is no diagnostics (== all checks passed).

While GitLab needs a codequality report that should be an array (empty in this particular case), ty check --output-format=gitlab generates no output, thus the JSON file generated from this command is malformed to be uploaded as a codequality artifact for GitLab.

To fix this issue, a run of ty check --output-format=gitlab whene there is no errors should instead generate an empty array ([]), as stated in GitLab documentation : "The file you provide as Code Quality report artifact must contain a single JSON array."

Version

ty 0.0.13 (fc1478b 2026-01-21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions