Skip to content

Commit

Permalink
Fix issue that prevents accessing right configuration data (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmartosdev authored Oct 3, 2022
1 parent 698284e commit fb33b9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class TwitterDetektRule(
config: Config = Config.empty
) : Rule(config), ComposeKtVisitor {

private val config: ComposeKtConfig = DetektComposeKtConfig(config)
private val config: ComposeKtConfig by lazy { DetektComposeKtConfig(this) }

private val emitter: Emitter = Emitter { element, message, canBeAutoCorrected ->
// Grab the named element if there were any, otherwise fall back to the whole PsiElement
Expand Down

0 comments on commit fb33b9d

Please sign in to comment.