This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-15
Channels
- # adventofcode (2)
- # announcements (11)
- # babashka (48)
- # beginners (332)
- # calva (73)
- # cider (2)
- # clj-kondo (11)
- # cljfx (15)
- # clojure (23)
- # clojure-austin (1)
- # clojure-europe (42)
- # clojure-france (3)
- # clojure-nl (5)
- # clojure-taiwan (1)
- # clojure-uk (44)
- # clojurescript (25)
- # conjure (30)
- # cursive (3)
- # data-science (1)
- # fulcro (12)
- # jobs (3)
- # kaocha (1)
- # malli (2)
- # off-topic (49)
- # pathom (21)
- # pedestal (13)
- # re-frame (3)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (3)
- # sql (11)
- # startup-in-a-month (4)
- # tools-deps (113)
- # xtdb (16)
- # yada (6)
We're starting to mark some code as deprecated, and I didn't see any kondo tests for deprecated namespaces. Clojure has hinted at supporting this: https://clojure.atlassian.net/browse/CLJ-706? I'm guessing kondo doesn't by lack of tests.
clj-kondo does lint deprecated vars, but not deprecated nss. Feel free to create an issue
I guess detecting :deprecated true
or :deprecated "1.10.1"
in the metadata of the ns is sufficient
> A warning similar to the one when using a deprecated namespace you mean var right?
❯ echo '(defn- foo [x] (when x (foo false)))' | clj-kondo --lint -
linting took 14ms, errors: 0, warnings: 0
this might be a little bit odd false-positive linting result
private foo is not used anywhere except in foo’s body
compare with that
❯ echo '(defn- foo [x] (when x 1))' | clj-kondo --lint -
<stdin>:1:8: warning: Unused private var user/foo
linting took 11ms, errors: 0, warnings: 1
is it worth to file an issue?