borkdude / flycheck-clj-kondo

Emacs integration for clj-kondo via flycheck
94 stars 17 forks source link

allow adding custom args to defined checkers #23

Closed genmeblog closed 1 year ago

genmeblog commented 1 year ago

Can we have a possibility to pass additional arguments to clj-kondo through custom var? I want to add --dependencies or --copy-configs for example. Currently arguments are hardcoded.

genmeblog commented 1 year ago

Possibly misunderstood the concept of --copy-configs which is rather one-time job for given setup. Anyway, I believe custom options for clj-kondo call might be useful.

borkdude commented 1 year ago

@genmeblog You can pass extra args with:

(flycheck-clj-kondo-define-checkers "--cache" ... you args here ...)

This will re-define all the checkers with your extra args. But as you said, --copy-configs is just a one time job and I don't recommend passing that to the checkers.

genmeblog commented 1 year ago

Right! I see. I was looking for some global var. Thanks!