Turn on this rule to flag require calls for not-null check that can be replaced with a requireNotNull call.
require(x != null)
requireNotNull(x)
The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html