This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-06
Channels
- # announcements (2)
- # babashka (22)
- # beginners (93)
- # calva (12)
- # cider (65)
- # clj-kondo (15)
- # cljdoc (5)
- # cljs-dev (4)
- # cljsrn (4)
- # clojure (65)
- # clojure-europe (2)
- # clojure-italy (1)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-spec (40)
- # clojure-uk (7)
- # clojurescript (12)
- # conjure (1)
- # cursive (2)
- # data-science (13)
- # datomic (1)
- # dirac (12)
- # emacs (3)
- # figwheel-main (19)
- # ghostwheel (5)
- # helix (6)
- # kaocha (1)
- # leiningen (6)
- # news-and-articles (2)
- # off-topic (17)
- # pathom (5)
- # re-frame (59)
- # reitit (17)
- # restql (1)
- # shadow-cljs (31)
- # spacemacs (5)
- # spire (3)
- # sql (35)
I’m having some config to ignore an unresolved symbol in one particular namespace. My editor integration picks it up correctly but when ran with --config
on the CLI it seems the namespace specific configuration is ignored. Is this intentional?
{:clj-kondo/config {:linters
{:unresolved-symbol
{:exclude [sentry]}}}}
This is the piece of config. Interestingly my editor integration does NOT pick this up correctly with quotes. ie. '[sentry]
@U050TNB9F So this works:
(ns foo
{:clj-kondo/config '{:linters
{:unresolved-symbol
{:exclude [sentry]}}}})
(map sentry [1 2 3])
That did the trick. Seems a little surprising to me though? Why does the quoting only work in this one place?
@U050TNB9F Because clj-kondo doesn't evaluate code
Playing around with the type stuff foo2 gives a warning, foo1 does not, does this warrant an issue?
@sfyire This does work: (defn foo1 [^long s]) (foo1 "get")
. But adding Integer
to map to :int
would be good I think
cool placed it here: https://github.com/borkdude/clj-kondo/issues/910