clj-kondo

seancorfield 2024-11-27T22:13:59.741889Z

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

borkdude 2024-11-27T22:14:31.078379Z

are you sure you are using the latest version?

seancorfield 2024-11-27T22:14:57.265649Z

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

borkdude 2024-11-27T22:15:16.687269Z

it is

borkdude 2024-11-27T22:15:34.851869Z

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

seancorfield 2024-11-27T22:15:42.999969Z

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

borkdude 2024-11-27T22:15:58.832429Z

seems old

borkdude 2024-11-27T22:20:18.775149Z

this linter appeared since https://github.com/clj-kondo/clj-kondo/releases/tag/v2024.11.14

seancorfield 2024-11-27T22:22:19.705419Z

I wonder if the nightly LSP builds are broken?

seancorfield 2024-11-27T22:23:05.275319Z

Yup... been failing for a while... https://github.com/clojure-lsp/clojure-lsp/actions/runs/11843230164

borkdude 2024-11-27T22:23:20.909189Z

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

seancorfield 2024-11-27T22:24:04.715159Z

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

borkdude 2024-11-27T22:24:21.768089Z

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 "$@"

borkdude 2024-11-27T22:25:02.549989Z

interesting (that the clj-kondo bump is failing)

seancorfield 2024-11-27T22:25:26.631729Z

All LSP builds are failing now.

borkdude 2024-11-27T22:26:30.205009Z

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

seancorfield 2024-11-27T22:27:12.926809Z

The JDK 8 test runs are timing out.

👍 1
seancorfield 2024-11-27T23:07:56.464529Z

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