Open mrdannael opened 8 months ago
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.
Similar one used by eg GitHub: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning
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. 😊