This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-21
Channels
- # babashka (16)
- # beginners (182)
- # calva (13)
- # chlorine-clover (43)
- # clj-kondo (17)
- # cljs-dev (14)
- # cljsrn (19)
- # clojure (97)
- # clojure-argentina (7)
- # clojure-dev (45)
- # clojure-europe (7)
- # clojure-germany (5)
- # clojure-nl (4)
- # clojure-portugal (4)
- # clojure-romania (5)
- # clojure-spec (46)
- # clojure-uk (21)
- # clojuredesign-podcast (2)
- # clojurescript (159)
- # conjure (28)
- # core-async (7)
- # cursive (13)
- # datomic (17)
- # defnpodcast (9)
- # duct (1)
- # fulcro (45)
- # graphql (6)
- # jobs (7)
- # jobs-discuss (1)
- # juxt (3)
- # kaocha (4)
- # leiningen (12)
- # malli (5)
- # observability (1)
- # off-topic (50)
- # pathom (15)
- # re-frame (16)
- # reitit (5)
- # remote-jobs (21)
- # ring (7)
- # shadow-cljs (166)
- # test-check (6)
- # tools-deps (27)
- # xtdb (2)
clj-kondo
warns about unresolved symbols in macros,
(defmacro when-let*
([bindings & body]
(if (seq bindings)
`(when-let [~(first bindings) ~(second bindings)]
(when-let* ~(drop 2 bindings) ~@body))
`(do ~@body))))
(when-let* [x 1 ;; x unresolved
y 2] ;; y unresolved
...)
Is this within the scope of clj-kondo
?@hindol.adhya You can use the :lint-as
configuration here
If it were the ns defining it, the macro and the config for linting could be together. But in this case, will just use .clj-kondo/config.edn
that would only work if you would lint all the sources in your project including dependencies. clj-kondo is designed to be able to lint single files as well
Had some trouble installing clj-kondo today after following the instructions in the README.
/usr/local/bin
is not always writable, and there seems to be some race condition too in the installation script when running it against a temporary file.
~ % bash <(curl -s )
Downloading to /tmp
Moving /usr/local/bin/clj-kondo to /usr/local/bin/clj-kondo.old
mv: cannot move '/tmp/clj-kondo' to '/usr/local/bin/clj-kondo': Permission denied
~ % sudo bash <(curl -s )
bash: /proc/self/fd/11: No such file or directory
~ % (23) Failed writing body
~ % curl > install-clj-kondo.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1992 100 1992 0 0 24292 0 --:--:-- --:--:-- --:--:-- 24000
~ % ./install-clj-kondo.sh
zsh: permission denied: ./install-clj-kondo.sh
~ % chmod +x ./install-clj-kondo.sh
~ % sudo ./install-clj-kondo.sh
Downloading to /tmp
Successfully installed clj-kondo in /usr/local/bin
@cfeckardt you can invoke it like this:
install [--dir <dir>] [--download-dir <download-dir>]
does that not work for you?