Fork me on GitHub
#clj-kondo
<
2023-10-10
>
Thayanne Sousa15:10:44

Hello! Is there a field to specify a docs url for the linter/hook to show it along with lint message? Or the only way to do it is to add the link in the :message field?

borkdude15:10:16

There's no special field for it

Thayanne Sousa15:10:28

Wdyt about something adding it as an optional field? Linters like https://eslint.org/docs/latest/extend/custom-rules#rule-structure have support for this The message could be a hyperlink to it, or at the ending of the finding we can add a hyperlink “Docs”

borkdude16:10:21

@U04CT70C8CU Interesting idea. Where would this link be displayed, or just in the data output?

Thayanne Sousa16:10:04

I think in the data output, along with the message

borkdude17:10:13

You mean in a hook right?

borkdude17:10:30

What happens if you simply feed a :doc key to reg-finding!?