I'm trying to get the right config.edn for a pedestal macro defroutes
gives me an unsatisfying [Error - 12:03:11 PM] <http://java.io|java.io>.PrintWriter@3bb7d04d
error
(ns foo
{:clj-kondo/config '{:linters
{:unresolved-symbol
{:exclude [(io.pedestal.http.route.definition/defroutes)]}}}}
(:require [io.pedestal.http.route.definition :refer [defroutes]]))
(defroutes x)
ah ha.
thank you!
btw, I don't know this macro, but if it's similar to compojure/defroutes, you could try lint-as
because there is built-in support for compojure
but I bet it isn't
yeah pedestal takes a different structure
@gerred still showing the unsatisfying error here
really? it's working for me now. I did have to (declare routes)
to make my var quote work
I was reading some old posts and I understood that LSP is the preferred method to configure clj-kondo with IntelliJ IDEA (and not File Watcher)?
Clj-kondo does not work in ClojureScript correct?
If you wanted say a browser editor to support some of its linting?
@kari.marttila just choose the one that works
@didibus clj-kondo is JVM only
Ok thx
@didibus however, I made this: https://clj-kondo.michielborkent.nl/ - it's calling clj-kondo as a service
Hum, ya I guess that can be an option. I was hoping to have a static website for this though, no server involved.
Now just waiting for GraalVM to have a native WASM target 😋
Hi Guys
I'm facing an issue that maybe you already had.
I have the same macro, defined in several project in different name spaces (I know it is bad, but this is the current state).
(the macro is the if-let*
so you can said it should be identified like the let
macro).
I'm trying to have one "global" config for all the projects.
Not sure how to do this, was thinking about the lint-at
section, but since the location of the macro in each project is different, I'm not sure it is possible.
Any idea?
@bhaim123 you can just put multiple lint-as entries for each different namespace?
@borkdude thanks for helping! I prefer not to do that since we have many different project and it will make the config really ugly 🙂
then use a different config for each project. I don't see anything in between those approaches
👍
Thanks! clj-kondo is a great tool - very popular at Metosin.
Thanks!