This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-25
Channels
- # announcements (8)
- # babashka (58)
- # beginners (59)
- # biff (4)
- # calva (39)
- # cider (2)
- # clj-kondo (8)
- # clj-together (4)
- # cljdoc (5)
- # cljsrn (1)
- # clojure (60)
- # clojure-australia (2)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojurescript (13)
- # conjure (10)
- # cursive (9)
- # datomic (5)
- # dev-tooling (1)
- # emacs (6)
- # events (1)
- # graalvm (38)
- # graphql (5)
- # joyride (1)
- # kaocha (3)
- # lsp (23)
- # malli (2)
- # mount (2)
- # off-topic (31)
- # other-languages (13)
- # pathom (3)
- # polylith (12)
- # portal (4)
- # practicalli (22)
- # re-frame (6)
- # reagent (3)
- # releases (3)
- # sql (4)
- # squint (3)
- # tools-build (10)
- # tools-deps (10)
- # xtdb (4)
Should the unused public var linter flag when a var is referenced quoted?
(def foo :foo)
(def foo-q 'foo)
foo
is flagged as unused. Maybe it should, come to think of it...@pez quoted symbols naming vars do not count as var references, currently. but we talked recently about this, that it might be interesting for clojure-lsp to do regard it as a reference for navigation purposes
It does count when you write foo` since syntax quote will use the environment to resolve the var so in that sense the var is "used"

I have a ns with many unused public vars, as I bind them dynamically. How do I ignore the :clojure-lsp/unused-public-var
warning for the entire ns? #_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
in front of each def
works as expected.
Ah that did it, thank you! I was setting :level :off
didn’t realize I could just exclude the linter as such.