clj-kondo

https://github.com/clj-kondo/clj-kondo
2020-09-04T10:07:41.044400Z

so i'm trying to build master as well as the ignore-form branch, but it seems i'm doing something wrong. i'm using the jdk 11 20.1.0 version of graal on linux -- bash script/compile gives me this: https://pastebin.com/uJZNZKFF i noticed that the build.md doc now mentions something about using jdk12 to update resources: https://github.com/borkdude/clj-kondo/blob/master/doc/build.md#optional-steps is that something i need to do to build from source now?

borkdude 2020-09-04T10:09:56.044800Z

It's been upgraded to 20.2.0 now

2020-09-04T10:10:17.045300Z

so are you saying i must use 20.2.0? i'm fine to do so.

borkdude 2020-09-04T10:10:17.045400Z

The optional steps are optional, so don't bother with those

borkdude 2020-09-04T10:10:19.045600Z

yes

2020-09-04T10:10:23.045800Z

ok, thanks!

borkdude 2020-09-04T10:10:43.046100Z

We should mention 20.2 in that README

borkdude 2020-09-04T10:10:54.046300Z

it also has to be java11 now

borkdude 2020-09-04T10:11:03.046500Z

PR welcome!

borkdude 2020-09-04T10:11:26.047300Z

We can only run with one specific GraalVM version due to the reflector fix

2020-09-04T10:11:27.047500Z

ok -- gotta go out for a bit, but when i get back i'll try the steps and update the docs if i'm successful 🙂

2020-09-04T11:36:14.048300Z

ok, 20.2.0 seemed to be enough -- PR with doc update suggestion sent

2020-09-04T11:40:54.049500Z

@borkdude so i tried the ignore-form branch. the basic functionality seems to work :thumbsup: i don't know if i did something wrong, but the following seemed to also affect linting:

(let [x 1]
  {:clj-kondo/ignore [:redundant-let]}
  (let [y 2]
    (inc x y)
    ))
$ ./clj-kondo --lint ignore-form.clj
ignore-form.clj:4:5: error: clojure.core/inc is called with 2 args but expects 1
linting took 17ms, errors: 1, warnings: 0
note: i left off the discard marker #_

2020-09-04T11:41:17.050Z

when i comment out the map, the linting goes back to normal

2020-09-04T11:42:47.050400Z

(let [x 1]
  ;;{:clj-kondo/ignore [:redundant-let]}
  (let [y 2]
    (inc x y)
    ))
$ ./clj-kondo --lint ignore-form.clj
ignore-form.clj:3:3: warning: Redundant let expression.
ignore-form.clj:4:5: error: clojure.core/inc is called with 2 args but expects 1
linting took 7ms, errors: 1, warnings: 1

borkdude 2020-09-04T11:57:52.051300Z

Oh, that's weird!

borkdude 2020-09-04T11:58:21.051700Z

I'll log this as an issue to fix

2020-09-04T11:58:26.051900Z

ah so does it happen for you?

borkdude 2020-09-04T11:58:30.052100Z

yes

2020-09-04T11:58:34.052300Z

ok thanks

borkdude 2020-09-04T11:58:54.052800Z

oh hmm, no this is intended, since the map makes the let not be redundant anymore ;)

2020-09-04T11:59:11.053Z

lol

2020-09-04T11:59:22.053500Z

hadn't thought of that 🙂

borkdude 2020-09-04T13:39:06.053900Z

Input welcome on having multiple config dirs for shared config/hook code: https://github.com/borkdude/clj-kondo/issues/992

borkdude 2020-09-04T21:09:37.054600Z

^ What if the Rum library hook config was part of the Rum library itself and clj-kondo could read it from your classpath?