Skip to content

Commit

Permalink
There is no function name that should be ignored by default
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Feb 21, 2023
1 parent f603cd7 commit d070952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion detekt-core/src/main/resources/default-detekt-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ style:
active: true
UnusedPrivateMember:
active: true
allowedNames: 'ignored|expected'
allowedNames: ''
UnusedPrivateProperty:
active: true
allowedNames: '_|ignored|expected|serialVersionUID'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UnusedPrivateMember(config: Config = Config.empty) : Rule(config) {
)

@Configuration("unused private function names matching this regex are ignored")
private val allowedNames: Regex by config("ignored|expected", String::toRegex)
private val allowedNames: Regex by config("", String::toRegex)

override fun visit(root: KtFile) {
super.visit(root)
Expand Down

0 comments on commit d070952

Please sign in to comment.