Any idea how to silence the linter errors for the naked (action [] …)
and (remote [] …)
definitions inside fulcro's defmutation
macro? 🙂
@avocade you can always put a #_:clj-kondo/ignore
on it, if you can't solve it any other way. I'm not familiar with those macros
you might want to write a hook for the defmutation macro though
(https://github.com/borkdude/clj-kondo/blob/master/doc/hooks.md)
Also see https://github.com/borkdude/clj-kondo/blob/master/doc/config.md
Is a PR welcome for https://github.com/borkdude/clj-kondo/issues/1042?
@jaihindhreddy yes please - are you also using that in format?
Nope. The mere existence of false-positives bugs me for some reason 😅
I did use relative indexing once for some online puzzle (before clj-kondo, a while ago)
PR welcome :)
https://github.com/borkdude/clj-kondo/pull/1045. (The checks ran successfully.)
@jaihindhreddy I think we might as well just do (.charAt ^String s 1)
instead of nth, since we know it's a string and don't need the polymorphic behavior which just wastes CPU cycles
Yeah, considered it, and thought it might be a premature optimisation.
In retrospect, the string is created within the function, and I'm just wasting CPU with nth
.
Changing.
done
Thanks!
https://github.com/borkdude/clj-kondo/issues/378 seems like a false flag. Perhaps it can be closed.
responded in issue