hugsql

shem 2021-11-10T09:10:02.001900Z

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?

borkdude 2021-11-10T09:34:52.003400Z

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

shem 2021-11-10T10:46:59.006200Z

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