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)