splint
splint copied to clipboard
FR: Add lint/redundant-do
As seen in these clj-kondo issues 1, 2, 3:
commentdelayvia fn*dosyncvia syncdotimesvia whenio!via doletfnvia letfn*lockingvia trysyncvia fnwhilevia whenwith-bindingsvia fnwith-in-strvia bindingwith-local-varsvia trywith-out-strvia bindingcatchwithintryfinallywithintry
Maybe include some mechanism for expanding this list? Configuration perhaps.
Actually, given how style/useless-do is written, it covers all of these already because it only checks that it's not wrapping ~@body and it's not in an anonymous function literal.
I'm a fool. style/useless-do is about single-element do calls. Instead, I want something like lint/redundant-do, an expansion of lint/loop-do.