Skip to content

Fix Request: false positive on Kotlin AvoidMultipleConcatStatements for mutableMap #674

@jborgers

Description

@jborgers
private fun falsePos(): Map<String, String> {
        val key = "key:"
        return mutableMapOf<String, String>().apply {
            this[key + "A"] = "valA"
            this[key + "B"] = "valB" // <-- false positive
        }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions