lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
2020-11-06T07:30:05.026Z

I am trying out clojure-lsp, using Spacemacs develop branch. All seems to be working, but I'd like to turn off one of the warnings. I'm working on a library which has a number of defn forms which are not used by other functions within the library (part of the API). For all of these functions, I get an "unused declaration" warning. I've looked in the docs and found how to turn off other warnings, like unused namespace and unused-reference-var, but nothing which seems to be applicable for turning off warnings for unused defn forms.

ericdallo 2020-11-06T12:41:26.026300Z

Hey, we use #clj-kondo for lint, so I think you need to add some config to clj-kondo ignore that lint

ericdallo 2020-11-06T12:41:58.026500Z

take a look at :`clj-kondo` here: https://github.com/snoe/clojure-lsp#initializationoptions

2020-11-06T22:16:15.027100Z

Already looked at clj-kondo, but that does not seem to be the answer. If I run clj-kondo manually, I don't get the warnings and there doens't seem to be anything in the clj-kondo config for unused declarations either. This could also be something specific to spacemacs. According to spacemacs documentation, for the lsp layer, there is the variable lsp-modeline-diagnostics-scope, but trying to set that seems to be generating an error about it having a missing value. It is likely I have something missing/wrong in the setup (Spacemacs develop does not yet 'natively' support clojure-lsp, I had to add it manually).