You can not write a Detekt rule for it, unfortunat...
# detekt
p
You can not write a Detekt rule for it, unfortunately, unless I am missing something very obvious. We decided to make that a Lint rule instead!