diktat icon indicating copy to clipboard operation
diktat copied to clipboard

Log lint errors even with `reporter=sarif`

Open petertrr opened this issue 3 years ago • 2 comments

Now (v 1.1.0) diktat-gradle-plugin doesn't log lint errors when reporter is set to SARIF. It makes it less obvious sometimes, e.g. when SARIF file failed to upload.

petertrr avatar Jun 07 '22 15:06 petertrr

fuck, isn't this a ktlint problem?

orchestr7 avatar Jun 07 '22 18:06 orchestr7

Nope, we should simply use two reporters simultaneously: reporter=plain,sarif

petertrr avatar Jun 08 '22 06:06 petertrr

supported:

  • gradle and maven plugins supports two reporters now and plain is enabled by default.
  • cli prints detected errors to stdout even when an additional reporter is configured

nulls avatar Dec 19 '23 11:12 nulls