Skip to content

Commit

Permalink
fixed parameter list for plugin creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZinsmaier committed Oct 8, 2015
1 parent f2c80a1 commit 131d8c9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ class ScalastyleRunner(rp: RulesProfile) {
}

private def ruleToChecker(activeRule: ActiveRule): ConfigurationChecker = {
val params = activeRule.getActiveRuleParams.map(p => (p.getKey, p.getValue)).toMap
ConfigurationChecker(params("scalastyle-checker"), ErrorLevel, true, params, None, None)
val sonarParams = activeRule.getActiveRuleParams.map(p => (p.getKey, p.getValue)).toMap

val checkerParams = sonarParams.remove("scalastyle-checker")
val className = sonarParams("scalastyle-checker")

ConfigurationChecker(className, ErrorLevel, true, sonarParams, None, None)
}
}

0 comments on commit 131d8c9

Please sign in to comment.