npm-groovy-lint
npm-groovy-lint copied to clipboard
Multiple output format
As a outcome from linter job I'd like to have two formats of the report available. One is a default one which I leave as it is on console. Second JSON format I would like to use to build own summary which I can publish.
Based on documentation I can specify only one format for single execution. Then having two I need to lint twice same code.
Current architecture of npm-groovy-lint is not compliant with multiple output formats
If you really need such behaviour, there are several possibilites:
-
Make a pull request in npm-groovy-lint, to allow --output argument to accept a comma-separated list of outputs. Most of updates would happen here but you should also make sure to handle all the impacts by searching on
output
andoutputType
in the whole lib folder -
Use sarif output then convert back to human format , using tools like sarif-fmt. That's what we do in MegaLinter when we use SARIF_REPORTER
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 🤖
label or comment on the issue.