Fork me on GitHub
#clj-kondo
<
2021-10-08
>
sheluchin14:10:08

I've been dealing with a bug [0] in my code that ultimately came down to a single letter typo. It was a typo in the options map that got passed to a function: :request-middlware. I'm not sure if this is kondo territory - excuse me if not - but is there any way to get a linter warning in such cases? [0]: https://clojurians.slack.com/archives/C68M60S4F/p1633611309397500

borkdude14:10:10

to a certain degree. the (preliminary) clj-kondo type system supports checking required keys in maps for some functions. the other option is to write your own hook for this specific function