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-callare you sure you are using the latest version?
Nightly LSP, so whatever that is pulling in. Is this a very recent addition?
it is
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-SNAPSHOTseems old
this linter appeared since https://github.com/clj-kondo/clj-kondo/releases/tag/v2024.11.14
I wonder if the nightly LSP builds are broken?
Yup... been failing for a while... https://github.com/clojure-lsp/clojure-lsp/actions/runs/11843230164
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.
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).