Fork me on GitHub
#clj-kondo
<
2022-07-06
>
souenzzo13:07:16

I'm coding in java and it have a cool code inspection: if I do var x = new Thing() and Thing implements AutoClosable, it warns me about this. Could be nice to have this kind of inspection in kondo, and maybe a code transformation from let to with-open

borkdude13:07:04

We don't need a code-transformation for changing 5 characters I think :) Also, warning on this can be nice but I'm sure one can come up with counter-examples where the warning will be a false positive

emccue13:07:18

good example is a Scanner - you can close it but you made it from http://System.in you're gonna have a bad time

👍 1