clj-kondo 2024-11-27

I just tried to add this to my clj-kondo config.edn and it is flagged as "Unexpected linter name":

:redundant-nested-call {:level :warning}
It's listed in https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md#redundant-nested-call

are you sure you are using the latest version?

Nightly LSP, so whatever that is pulling in. Is this a very recent addition?

but lsp nightly might have it, dunno. to be sure, lint from the command line with a known version

clojure-lsp version used: 2024.11.14-18.22.40-nightly
clj-kondo version used: 2024.09.28-SNAPSHOT
clojure-lsp version used: 2024.11.14-18.22.40-nightly
clj-kondo version used: 2024.09.28-SNAPSHOT

I wonder if the nightly LSP builds are broken?

that but also it seems clj-kondo hasn't been bumped to the latest yet

That build was the auto-PR to update clj-kondo

this is what I'm doing btw to run clj-kondo latest (from source with lsp):

~/bin/clojure-lsp-dev:

#!/usr/bin/env bash

clj -Sdeps '{:aliases
              {:lsp
                {:replace-paths []
                 :replace-deps
                  {org.clojure/clojure {:mvn/version "1.11.1"}
                   clj-kondo/clj-kondo {:local/root "/Users/borkdude/dev/clj-kondo"}
                   clojure-lsp/clojure-lsp {:local/root "/Users/borkdude/dev/clojure-lsp/cli"}
                   cider/cider-nrepl {:mvn/version "0.28.6"}}}}}' \
                       -M:lsp -m clojure-lsp.main "$@"

interesting (that the clj-kondo bump is failing)

All LSP builds are failing now.

probably GH Actions bitrot... happens quite often when they deprecate stuff (as in: just remove it ...)

The JDK 8 test runs are timing out.

👍 1

Decided to tighten up our linting at work, and make several things :error level -- and found a whole bunch of single argument threading calls (and a merge and a partial too), as well as several _-prefixed symbols that were actually used (and a few exceptions: _id, _score, and _source).

7