Skip to content

Commit

Permalink
Merge pull request #19 from andreysaksonov/add_report_parameter
Browse files Browse the repository at this point in the history
add report parameter
  • Loading branch information
Ozsie authored Apr 20, 2019
2 parents d13bac2 + 5636dc2 commit 994d4b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/github/ozsie/DetektMojo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ abstract class DetektMojo : AbstractMojo() {
@Parameter(property = "detekt.runRule", defaultValue = "")
var runRule = ""

@Parameter(property = "detekt.report", defaultValue = "")
var report = ""

@Parameter(property = "detekt.plugins")
var plugins = ArrayList<String>()

Expand All @@ -88,6 +91,7 @@ abstract class DetektMojo : AbstractMojo() {
.useIf(filters.isNotEmpty(), FILTERS, filters.joinToString(SEMICOLON))
.useIf(input.isNotEmpty(), INPUT, input)
.useIf(runRule.isNotEmpty(), RUN_RULE, runRule)
.useIf(report.isNotEmpty(), REPORT, report)
.useIf(printAst, PRINT_AST)
.useIf(disableDefaultRuleset, DISABLE_DEFAULT_RULE_SET)
.useIf(plugins.isNotEmpty(), PLUGINS, plugins.buildPluginPaths(mavenProject, localRepoLocation))
Expand Down

0 comments on commit 994d4b2

Please sign in to comment.