This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-23
Channels
- # announcements (11)
- # architecture (14)
- # babashka (34)
- # bangalore-clj (8)
- # beginners (108)
- # calva (10)
- # cider (19)
- # circleci (9)
- # clj-kondo (19)
- # clojars (4)
- # clojure (62)
- # clojure-australia (2)
- # clojure-europe (62)
- # clojure-italy (14)
- # clojure-nl (8)
- # clojure-poland (1)
- # clojure-spec (14)
- # clojure-uk (59)
- # clojurescript (14)
- # community-development (5)
- # conjure (2)
- # core-async (10)
- # cryogen (1)
- # cursive (11)
- # data-science (1)
- # datahike (13)
- # datomic (21)
- # deps-new (4)
- # ethereum (1)
- # events (4)
- # fulcro (34)
- # helix (2)
- # jobs (2)
- # juxt (33)
- # kaocha (4)
- # lsp (18)
- # malli (4)
- # membrane (2)
- # off-topic (23)
- # re-frame (3)
- # reitit (4)
- # remote-jobs (1)
- # reveal (6)
- # shadow-cljs (47)
- # slack-help (2)
- # spacemacs (5)
- # sql (45)
- # startup-in-a-month (6)
- # testing (4)
- # tools-deps (21)
- # xtdb (4)
What's the best way to teach clj-kondo
about slingshot's special "features"?
E.g. I have this catch clause inside try+
and the linter reports "unresolved symbol" for both status, body, and &throw-context.
@jumar We have a hook for this in clj-kondo/config: https://github.com/clj-kondo/config
For the new unresolved-var
linter is there a way to exclude namespaces using a wildcard? Whttp://e.ge have yesql bringing in our sql functions using defqueries
that are all in namespaces like
and I don’t want warnings for any unresolved vars coming from
namespaces.
Essentially, this is what we’re doing now: https://github.com/clj-kondo/config/tree/master/hugsql but that no longer works
@U774Z4VJA This should still work if you haven't defined any other vars in those namespaces
If the namespace is empty (as far as clj-kondo is concerned), then it will be ignored with respect to the unresolved-var linter
Ok, I will play around with it and see. Right now it seems the same as the hugsql example I posted, but will verify.
There should be no file associated with that namespace in the .clj-kondo .cache in this case
ya still erring. My yesql ns is like:
(ns com.core.db.query.yesql.webhook
(:require [yesql.core :as yesql]))
(yesql/defqueries "sql/core/webhook.sql")
At the moment there is no wildcard, but you can turn the unresolved-var linter off for now and post an issue
Ok thanks, will try to get a min case and post an issue later today or tomorrow. Many thanks @U04V15CAJ