metosin / compojure-api

Sweet web apis with Compojure & Swagger
http://metosin.github.io/compojure-api/doc/
Eclipse Public License 1.0
1.11k stars 149 forks source link

Clj-kondo linting issue #457

Closed sindhubb closed 1 year ago

sindhubb commented 1 year ago

Library Version(s)

[metosin/compojure-api "2.0.0-alpha31"]

Problem

I am using Calva with Clojure-lsp and have my clj-kondo settings in .config/clj-kondo/config.edn. It has the following config:

{:linters {:unresolved-symbol {:exclude [(compojure.api.sweet/context)]}}
                           :output {:progress true}}

got it from: https://clojurians-log.clojureverse.org/clj-kondo/2020-01-10/1578663826.055400

Yet I see squiggly lines warning 'unresolved symbol' under args.

image

What setting should I have so that I don't see this linting issue?

Thanks!

Deraen commented 1 year ago

The mentioned config only affects context macro which isn't used here.

You could similarly ignore unresolved symbol errors inside POST and GET macros in this example.

Writing real Kondo analyzers for Composure-API macros is unfeasible unfortunately.

sindhubb commented 1 year ago

Thank you, that did it! :)