Fork me on GitHub
#clj-kondo
<
2022-04-15
>
dviramontes22:04:23

With clj-kondo analysis export capabilities, is it possible to get at this information here to get the number of errors found after linting ?

linting took 3272ms, errors: 41, warnings: 806

dviramontes22:04:51

in other words, is there a way to export this linting result data ?

borkdude22:04:28

Yes:

user=> (:summary (with-in-str "(+ :inc)" (clj-kondo/run! {:lint ["-"]})))
{:error 0, :warning 1, :info 0, :type :summary, :duration 12, :files 1}

1
dviramontes22:04:06

Amazing thank you!