This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-23
Channels
- # babashka (18)
- # babashka-sci-dev (42)
- # beginners (84)
- # calva (11)
- # cider (5)
- # clj-kondo (11)
- # cljdoc (70)
- # cljs-dev (34)
- # clojure-europe (1)
- # clojurescript (3)
- # conjure (1)
- # core-async (29)
- # data-oriented-programming (10)
- # emacs (13)
- # fulcro (8)
- # gratitude (2)
- # honeysql (1)
- # introduce-yourself (4)
- # kaocha (10)
- # missionary (8)
- # nrepl (4)
- # off-topic (27)
- # portal (32)
- # releases (11)
- # tools-deps (11)
- # xtdb (19)
I have a working title for "discouraged var", for configuring vars that you'd rather not use in your program (think eval, read-string, whatever). Any alternative names?
Discourage, deny, disallow, exclude, reject, block
I think that's the best choice too
$ clojure -M:clj-kondo/dev --lint - --config '{:linters {:discouraged-var {clojure.core/inc {:message "Incrementing numbers is dangerous"}}}}' <<< '(inc 1)'
<stdin>:1:1: warning: Incrementing numbers is dangerous
Will there be a default message?
That’s beautiful. Thank you so much
Discouraged var preview: https://twitter.com/borkdude/status/1517880266840285184
clj-kondo v2022.04.23
• https://github.com/clj-kondo/clj-kondo/issues/1653: new linter :keyword-binding
- warns when a keyword is used in a :keys
binding vector. This linter is :off
by default. See https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md#keyword-in-binding-vector.
• https://github.com/clj-kondo/clj-kondo/issues/996: new linter :discouraged-var
. See https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md#discouraged-var.
• https://github.com/clj-kondo/clj-kondo/issues/1618: new :config-in-ns
configuration option. See https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#config-in-ns.
• Support :ns-groups
configuration option. See https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#namespace-groups
• https://github.com/clj-kondo/clj-kondo/issues/1657: support bindings with same name in clojure.core.match
• https://github.com/clj-kondo/clj-kondo/issues/1659: fix false positive unused import
• https://github.com/clj-kondo/clj-kondo/issues/1649: dot (`.`) should be unresolved when not in fn position

