rewrite-clj

Quentin Le Guennec 2023-07-25T07:41:45.416399Z

Hi, is there some published rewrite-clj code somewhere that removes reader conditionals, eg, if you want to turn your cljc files into clj ?

borkdude 2023-07-25T07:56:46.937749Z

Yes, I've got some code for this in clj-kondo, it's in impl/utils.clj

borkdude 2023-07-25T07:57:22.875949Z

clj-kondo basically passes over a .cljc file for each language and removes any reader conditional branches that it's not interested in for that particular language

Quentin Le Guennec 2023-07-25T13:46:36.685769Z

Very cool, I’ll check it out, thanks borkdude