Fork me on GitHub
#clj-kondo
<
2023-01-12
>
ericdallo17:01:48

I'd like to bring some numbers to you @borkdude about clojure-lsp linter (clj-kondo used under the hood) adoption in Nubank services, there are more than 1000 services/libraries using clojure-lsp format, clean-ns and diagnostics, a really good success case for both libs clj-kondo ❤️ clojure-lsp

🎉 20
nathanmarz20:01:58

@borkdude how would I go about adding a linting hook for calls to new?

borkdude20:01:45

you can add a hook for clojure.core/new

nathanmarz20:01:02

thanks, that worked great

nathanmarz23:01:41

kondo seems to have different behavior for (Foo.) callsites vs. (new Foo)

nathanmarz23:01:28

both are caught by clojure.core/new hook, but the former doesn't have any metadata and doesn't respect :clj-kondo/ignore annotations

borkdude07:01:59

Can you post an issue?

borkdude19:01:11

v2021.07.28 is quite old, can you upgrade?