Fork me on GitHub
#hugsql
<
2021-11-10
>
shem09:11:02

i wonder if it would be possible to get hugsql play nice with clj-kondo out of the box, so that projects wouldn't need to suppress warnings or add extra namespaces?

borkdude09:11:52

@shem this would require clj-kondo to parse the .sql files to see which vars are in them. you can also just add the hugsql namespaces to be excluded in unresolved vars: {:linters {:unresolved-var {:exclude [foo]}}}

shem10:11:59

we have lots of namespaces using hugsql, it would be a pity to lose the unresolved-var warning in all of them, and also quite tedious to keep the exclusion list up to date. well, it's quite obvious to see from our naming conventions which warnings concern hugsql and are spurious, we can live with that