mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Enable UseEmptyCounterpart for detekt code base (#4000)
Co-authored-by: Markus Schwarz <post@markus-schwarz.net>
This commit is contained in:
@@ -69,7 +69,7 @@ class LabeledExpression(config: Config = Config.empty) : Rule(config) {
|
||||
)
|
||||
|
||||
@Configuration("allows to provide a list of label names which should be ignored by this rule")
|
||||
private val ignoredLabels: List<String> by config(listOf<String>()) { list ->
|
||||
private val ignoredLabels: List<String> by config(emptyList<String>()) { list ->
|
||||
list.map { it.removePrefix("*").removeSuffix("*") }
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class LongParameterList(config: Config = Config.empty) : Rule(config) {
|
||||
"the most common cases are for dependency injection where constructors are annotated with `@Inject` " +
|
||||
"or parameters are annotated with `@Value` and should not be counted for the rule to trigger"
|
||||
)
|
||||
private val ignoreAnnotated: List<String> by config(listOf<String>()) { list ->
|
||||
private val ignoreAnnotated: List<String> by config(emptyList<String>()) { list ->
|
||||
list.map { it.removePrefix("*").removeSuffix("*") }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user