Turn on this rule to flag find calls for null check that can be replaced with any or none call.
listOf(1, 2, 3).find { it == 4 } != nulllistOf(1, 2, 3).find { it == 4 } == null
listOf(1, 2, 3).any { it == 4 }listOf(1, 2, 3).none { it == 4 }
The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html