knip icon indicating copy to clipboard operation
knip copied to clipboard

💡 Gitlab Code Quality Reporter

Open atheck opened this issue 10 months ago • 1 comments

Suggest an idea for Knip

A reporter to generate json output for Gitlab Code Quality reports would be nice. See here: https://docs.gitlab.com/ci/testing/code_quality/#code-quality-report-format

Are there plans to add this? Or concerns?

If not, I can try it myself and open a PR.

atheck avatar Mar 06 '25 05:03 atheck

Thanks for the suggestion, Henrik. Great idea, I'm not aware of such plans.

No concerns either, looks like the required information is available in options.issues that will be passed to the reporter function. Perhaps it makes sense to keep terminology a bit close to https://knip.dev/reference/issue-types so users can look things up in the Knip docs.

I'd be happy to add such a reporter to Knip, so a pull request is very welcome. Feel free to ask away.

webpro avatar Mar 06 '25 05:03 webpro