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)
https://clojars.org/net.modulolotus/truegrit/versions/1.0.7 is out. The primary change is to remove some of the unneeded deps. It no longer depends on the Resilience4j cache or decorator modules or slf4j-api.
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
Demo of :discouraged-var
:
https://twitter.com/borkdude/status/1517880266840285184
I'm surprised :keyword-binding
is :off
by default -- that seems uncontroversial?
@U04V70XH6 I've worked in a company on a large code base where that style is being used extensively, I didn't want to do that to them. :) There might even be a few of those in clj-kondo itself since I adapted to the style of that company when I worked there.
Fair enough. Once LSP is updated to include at least this version, I'll definitely turn this one on at work 🙂
I think I'll turn it on in my home dir config so I'll get the warnings during development, but CI won't complain
@U04V70XH6 you can also try the clj-kondo vscode extension while lsp isn't updated yet
Doesn't that cause conflicts with Calva and its LSP/kondo setup?
com.github.seancorfield/honeysql {:mvn/version "2.2.891"}
-- SQL as Clojure data structures:
• Address https://github.com/seancorfield/honeysql/issues/404 by documenting PostgreSQL's ARRAY
constructor syntax and how to produce it.
• Address parts of https://github.com/seancorfield/honeysql/issues/403 by improving the documentation for :array
and also improving the exception that was thrown when it was misused.
• Fix https://github.com/seancorfield/honeysql/issues/402 by allowing for expressions in :insert-into
table.
• Address https://github.com/seancorfield/honeysql/issues/400 by adding :table
clause.
• Address https://github.com/seancorfield/honeysql/issues/399 by correcting multi-column RETURNING
clauses in docs and tests.
• Fix https://github.com/seancorfield/honeysql/issues/398 by adding honey.sql.pg-ops
namespace that registers PostgreSQL JSON and regex operators and provides symbolic names for "unwritable" operators (that contain @
, #
, or ~
).
• Address https://github.com/seancorfield/honeysql/issues/396 by throwing an exception if you try to cache a SQL statement that includes an IN ()
expression, using a named parameter for the IN
values.
• Fix https://github.com/seancorfield/honeysql/issues/394 by restoring HoneySQL 1.x's behavior when quoting.
• Fix https://github.com/seancorfield/honeysql/issues/387 again.
• Update CI to reflect Clojure 1.11 release (master -> 1.11; new master is 1.12).
• Update build-clj
to v0.8.0.
Follow-up in #honeysql