Fork me on GitHub

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?


@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]}}}


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