Fork me on GitHub
#clj-kondo
<
2020-10-19
>
avocade13:10:04

Any idea how to silence the linter errors for the naked (action [] …) and (remote [] …) definitions inside fulcro's defmutation macro? 🙂

borkdude13:10:15

@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

borkdude13:10:32

you might want to write a hook for the defmutation macro though

👍 3
borkdude15:10:24

@jaihindhreddy yes please - are you also using that in format?

jaihindhreddy15:10:52

Nope. The mere existence of false-positives bugs me for some reason 😅

jaihindhreddy15:10:17

I did use relative indexing once for some online puzzle (before clj-kondo, a while ago)

borkdude15:10:52

PR welcome :)

💯 3
borkdude15:10:12

@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

jaihindhreddy15:10:17

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.

jaihindhreddy15:10:02

https://github.com/borkdude/clj-kondo/issues/378 seems like a false flag. Perhaps it can be closed.

borkdude15:10:21

responded in issue

💯 3