Skip to content

LSP Unused Public Var -> Kondo Redundant Ignore #2722

Open
@klauswuestefeld

Description

@klauswuestefeld

Hi! Thanks for Calva!!

With a tiny project like this:

deps.edn

{:paths ["src"]}

src/main.clj

(ns main)
(defn foo [] 42)

foo is marked with an info alert:

"code": "clojure-lsp/unused-public-var",
"source": "clojure-lsp",

I click on the light bulb and it adds this line before foo:

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}

Now that new line is marked with an info alert:

"code": "redundant-ignore",
"source": "clj-kondo",

Versions:

Calva 2.0.485 Last Updated 2025-02-02, 17:35:41
Calva Spritz 1.0.5 Last Updated 2025-02-02, 17:35:41 (Calva apparently installs this too, although I don't have LiveShare installed.)
VSCode 1.96.4 Date: 2025-01-16T00:16:19.038Z
Ubuntu 22.04.5 LTS

What am I doing wrong?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions