npm-groovy-lint icon indicating copy to clipboard operation
npm-groovy-lint copied to clipboard

Multiple output format

Open damianszczepanik opened this issue 1 year ago • 1 comments

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.

damianszczepanik avatar Sep 23 '22 09:09 damianszczepanik

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 and outputType 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

nvuillam avatar Sep 25 '22 09:09 nvuillam

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.

github-actions[bot] avatar Oct 26 '22 02:10 github-actions[bot]