This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-29
Channels
- # announcements (1)
- # babashka (120)
- # beginners (184)
- # cider (14)
- # clara (2)
- # clj-kondo (25)
- # cljfx (9)
- # cljsrn (43)
- # clojure (46)
- # clojure-australia (2)
- # clojure-berlin (5)
- # clojure-dev (2)
- # clojure-europe (10)
- # clojure-france (3)
- # clojure-nl (1)
- # clojure-spec (14)
- # clojure-uk (30)
- # clojurescript (50)
- # code-reviews (19)
- # conjure (11)
- # core-logic (2)
- # cursive (20)
- # datascript (1)
- # datomic (74)
- # figwheel-main (1)
- # fulcro (10)
- # funcool (2)
- # graphql (1)
- # lambdaisland (1)
- # malli (2)
- # meander (22)
- # nrepl (13)
- # off-topic (28)
- # overtone (3)
- # pathom (7)
- # pedestal (4)
- # re-frame (4)
- # reagent (16)
- # reitit (4)
- # releases (1)
- # ring (8)
- # shadow-cljs (93)
- # specter (6)
- # sql (13)
- # test-check (1)
- # tools-deps (1)
- # tree-sitter (2)
- # vim (8)
- # xtdb (25)
For those interested: I created an RPM for clj-kondo. AppImage and .deb builds may follow. https://build.opensuse.org/package/show/home:zilti:clojure/clj-kondo
oh with reader conditional. can you please give the full example. it might be a different issue
omg, I just spent an hour understanding why (name my-keyword)
didnât work while (clj->js my-keyword)
did⌠classic case of shadowed variable. Canât wait for kondo support for this đ âName is forever nom.â
@borkdude full example is simple: I want to ignore bindings for :clj but not for :cljs. So I did not find solution for this. But I can create ticket.
@serioga this works:
(ns foo-ns
{:clj-kondo/config '{:linters {:unused-binding {:level #?(:clj :off :cljs :warning)}}}})
(defn foo [x]
#?(:cljs x))
âthen use an underscore for the branch you want to ignoreâ I did not understand, what do you mean
#_{:clj-kondo/ignore [:unused-binding]}
(defn- select-field
[state column options idx remove-value classes]
...)
what you would like is:
#_{:clj-kondo/ignore #?(:clj [:unused-binding] :cljs []}
right?well, I aware about workarounds. I thought to use new âIgnore warnings in an expressionâ feature as less obtrusive but found that I want it to be selective for file type đ
ok, the problem is that reader comments are processed before reader conditionals, but I'll see if that can be fixed
Maybe you will find place for the specification of the effective file type in the :clj-kondo/ignore data itself đ