This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-23
Channels
- # announcements (1)
- # babashka (29)
- # beginners (53)
- # berlin (1)
- # cider (14)
- # clj-kondo (18)
- # cljsrn (16)
- # clojure (141)
- # clojure-france (4)
- # clojure-italy (8)
- # clojure-norway (1)
- # clojure-uk (57)
- # core-async (7)
- # cursive (3)
- # data-science (2)
- # datomic (12)
- # duct (5)
- # fulcro (27)
- # hoplon (37)
- # immutant (1)
- # jobs (2)
- # jobs-discuss (7)
- # kaocha (2)
- # leiningen (3)
- # music (17)
- # nyc (1)
- # off-topic (22)
- # pathom (27)
- # re-frame (33)
- # reitit (23)
- # shadow-cljs (20)
- # tools-deps (15)
- # vim (29)
> Unused private var config-compilation.yaml/whitespace-names [141, 2]
Should the colum here be 16, rather than 2?
(def ^:private whitespace-names
^2 ^16
if you're trying to exclude warnings based on position, maybe only use the line number?
I tried to make it consistent with joker so if you use both, you see it only in place:
$ clj-kondo --lint /tmp/foo.clj
/tmp/foo.clj:3:1: warning: Unused private var private.tmp.foo/foo
linting took 9ms, errors: 0, warnings: 1
$ joker --lint /tmp/foo.clj
/tmp/foo.clj:3:1: Parse warning: unused var foo (joker)
I do not have a strong case.
When the squiggle in VSCode is under the def, it makes me think that there is problem with the def
form.
If the squiggle were under the var name, I would assume the problem was with the var itself.
the way it works now is that the var is defined at that position, so in the export you will also have that position
please give it a try: https://marketplace.visualstudio.com/items?itemName=borkdude.clj-kondo this should work for users on Windows as well