Fork me on GitHub
#clj-kondo
<
2020-10-10
>
borkdude09:10:52

Clj-kondo v2020.10.10 New: shadowed var linter and various improvements and fixes Release notes: https://github.com/borkdude/clj-kondo/blob/master/CHANGELOG.md#v20201010 This release is funded by Clojurists Together.

clj-kondo 15
Luis Santos11:10:59

Hi Maybe this is an existing feature but I cannot find information about it. Would it be possible to annotate a macro, using metadata, with lint-as rule so that I can have out-of-box linting support? And if not is there a technical limitation or would it be a bad practice to do this? Thanks for all great work.

borkdude11:10:26

@luis559 Hi. This is not supported, since that would rely on clj-kondo linting the source of your macro in the right order, or at all and clj-kondo is not designed in such a way: it's designed to deal with incomplete information. A better way is to PR your config here: https://github.com/clj-kondo/config and then install the config using that lib.

borkdude11:10:35

I'm still considering something like picking up config from the classpath, but it's not yet clear

borkdude11:10:56

I think the config library could also be made to handle that

borkdude11:10:32

So then users could provide a clj-kondo.config/your.org/your.lib/config.edn directory on the classpath

borkdude11:10:39

and this will then be copied, or something like that

Luis Santos11:10:36

The classpath option sounds promising as well. Thanks for explanation. Looking forward to see how it evolves. Thanks.