Fork me on GitHub
#clj-kondo
<
2023-09-13
>
mauricio.szabo20:09:14

Hi there! I'm using :discouraged-var for a specific project, but somehow if I add the :level :error it still detects as warning. I tried to change to :level :off just to be sure that it turns the whole warning off, and indeed it does... am I doing something wrong?

borkdude21:09:56

Will look tomorrow

mauricio.szabo20:09:18

Great, thanks a lot! 🙂

skynet21:09:32

hey, not sure if there's a better tool or method here but: given a file test.edn

[:a :b]
[:c :d]
how can I "lint" this (with clj-kondo maybe) to warn that the [:c :d] part will be thrown away if say I do
=> (-> "test.edn" slurp clojure.edn/read-string)
[:a :b]
(based on a true story...)

borkdude22:09:51

The data by itself does not constitute an error, if you read this in a loop using a reader it will work

👍 2