knip icon indicating copy to clipboard operation
knip copied to clipboard

Junit reporter

Open mrdannael opened this issue 1 year ago • 2 comments

Could it be possible to include a JUnit reporter as part of Knip? For example, Bitbucket (and Jenkins, I believe, along with potentially other platforms) is capable of reading JUnit XML reports and displaying errors in a separate pipeline tab for end users. The reporter itself would generate an XML file containing all caught unused dependencies, unused exports, etc.

If that's acceptable to you, I can prepare a pull request for this feature/reporter. 😊

mrdannael avatar Mar 22 '24 12:03 mrdannael

Yes, that's interesting :)

You can already use custom reporters, but would be great to include them with Knip for others to enjoy as well.

webpro avatar Mar 22 '24 14:03 webpro

Similar one used by eg GitHub: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning

voxpelli avatar Apr 07 '24 21:04 voxpelli