I usually debug the code snippet in the detekt pro...
# detekt
s
I usually debug the code snippet in the detekt project. Furthermore, it might be a good idea to take a look at existing rules.