Fork me on GitHub
#clj-kondo
<
2022-02-01
>
winsome16:02:55

I've got (set! *warn-on-reflection* true) in a namespace, but clj-kondo is flagging it as an unresolved symbol. When I play with the playground tool, it doesn't have any problem with it, how can I correct my setup?

borkdude16:02:54

@winsome is this in a .cljc file? then this is because CLJS doesn't have that and you should put it behind a reader conditional

winsome16:02:25

yup, bingo. Thanks 🙏

lread16:02:15

@winsome, consider, if you wish, voting with a 👍 on https://github.com/clj-kondo/clj-kondo/issues/1196 to make these types of errors clearer.

danielcompton17:02:42

I'm running clj-kondo as clj-kondo --parallel --lint src --config .clj-kondo/config-ci.edn but am not seeing CPU go over 100% (a single core), even on a M1X MacBook Pro. Is this expected? I wasn't quite sure what the granularity of parallelism is

borkdude18:02:38

@danielcompton sources are grouped per .jar and per source dir, so linting only one dir will happen only on one core

borkdude20:02:45

@danielcompton is linting your src too slow?

borkdude20:02:06

you could split the src dir into --lint src/dir1:src/dir2 too speed it up :)

danielcompton23:02:55

Yeah, I split it into the 37 next level directories but it only sped it up from 10s to 7s and it only get to about 250% CPU, where it could get up to 800-1000%

danielcompton23:02:34

Not sure how much the Rosetta translation from Intel to ARM is costing

borkdude06:02:50

Is this on Whimsical and is that open source?

danielcompton03:02:29

It is on Whimsical, unfortunately not open source 🙂

borkdude07:02:14

You can always hire me for a couple of non-OSS hours to improve your kondo setup ;-). I've been doing this for several other companies

lread19:02:27

Do you have a core issue with clj-kondo @danielcompton? :drum_with_drumsticks:

😆 1