-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support configuration of reporters in DSL (#1808)
- extended DiktatExtension to support configuration of reporters in DSL - supported `json`, `checkstyle`, `html`, `sarif` and `plain` as function to configure in extensions - now `mergeDiktatReports` depends only to `diktatCheck` (previously it depended to `diktatFix` too) - now diktat gradle plugin supports multiple reporters
- Loading branch information
Showing
20 changed files
with
513 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
diktat-api/src/main/kotlin/com/saveourtool/diktat/api/DiktatReporterType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.saveourtool.diktat.api | ||
|
||
/** | ||
* @property id | ||
* @property extension | ||
*/ | ||
enum class DiktatReporterType( | ||
val id: String, | ||
val extension: String, | ||
) { | ||
CHECKSTYLE("checkstyle", "xml"), | ||
HTML("html", "html"), | ||
JSON("json", "json"), | ||
NONE("none", ""), | ||
PLAIN("plain", "txt"), | ||
SARIF("sarif", "sarif"), | ||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...dle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/DiktatJavaExecTaskBase.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.