Skip to content

Commit

Permalink
Add NestedScopeFunctions 'let' and 'also' to default
Browse files Browse the repository at this point in the history
  • Loading branch information
WildOrangutan committed Apr 30, 2022
1 parent 67143a1 commit bac48f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detekt-core/src/main/resources/default-detekt-config.yml
Expand Up @@ -140,6 +140,8 @@ complexity:
- 'kotlin.apply'
- 'kotlin.run'
- 'kotlin.with'
- 'kotlin.let'
- 'kotlin.also'
ReplaceSafeCallChainWithRun:
active: false
StringLiteralDuplication:
Expand Down
Expand Up @@ -84,6 +84,8 @@ class NestedScopeFunctions(config: Config = Config.empty) : Rule(config) {
"kotlin.apply",
"kotlin.run",
"kotlin.with",
"kotlin.let",
"kotlin.also",
)
}

Expand Down

0 comments on commit bac48f7

Please sign in to comment.