Fork me on GitHub
#clj-kondo
<
2023-10-24
>
Alexander Kouznetsov19:10:30

Is it correct that lint-as can’t be used to lint several macros using a single custom hook? The documentation for lint-as uses a phrase “built-in macro” which seems to suggest that custom hooks are excluded.

Alexander Kouznetsov19:10:52

Is there a way to collect data about how many warnings are related to each macro in the code that clj-kondo doesn’t understand? To the best of my knowledge, most macros confuse clj-kondo but the linting report only contains specific linting issues which aren’t linked to the root problem - an unrecognized macro. Is it possible to link an error or a warning to a specific unrecognized macro (and potentially separate true linting errors and false ones that require unrecognized macros fixes)?

Alexander Kouznetsov01:10:51

Do you mean that with analysis enabled, it will include the macro name/reference as part of the analysis or that given the data available in the analysis and the source code, it is possible to find the macros?

borkdude05:10:07

You don’t need the source code

Alexander Kouznetsov03:02:49

I gave it a shot but found that it is not always possible to clearly trace each failure to each unrecognized macro.

👍 1