Fork me on GitHub
#clj-kondo
<
2023-10-30
>
dharrigan16:10:10

You know what might be handy (does it exist already?) - a go-to list of lint-as settings for libraries, for example, through trial-and-error, I managed to figure out that compojure.api.sweet/defroutes can be linted as clojure.core/def. It would be nice to be able to go to a webpage and for it to say "if you're using such and such a library and function, here is what you can lint it as..."

borkdude16:10:05

There is even a better option: include the lint-as config with the library

dharrigan16:10:06

That is indeed better, but requires co-operation with the library author - and for it to be released and so on. On the other hand, having a page where a reference can be found (and removed, once the library has been clj-kondofied) is a stop-gap easy win.

dharrigan16:10:21

And some libraries are deprecated and wont' be maintained anymore

dharrigan16:10:26

i.e., compojure sweet

dharrigan16:10:34

yet they are still used in codebases.

borkdude16:10:33

there's also a contrib project here that doesn't require coordination with authors: https://github.com/babashka/sci.configs

borkdude16:10:49

but adding a wiki page could also work, it's better to have some tests around it though since these things tend to get stale