Fork me on GitHub
#clj-kondo
<
2024-01-02
>
jakemcc22:01:26

I'm starting to put some thought into implementing a linter for enforcing a limit on function line length (possibly any var definition) and thought I'd check if someone has already written something to do this. I don't see one in clj-kondo. Anyone know of any previous work?

borkdude22:01:55

you mean the number of lines of a function body?

borkdude22:01:28

or the length of individual lines?

jakemcc23:01:47

function body

borkdude23:01:33

it seems splint (a linter which looks at surface forms in the style of kibit) has something like this: https://cljdoc.org/d/io.github.noahtheduke/splint/1.11/doc/rule-documentation/metrics

gratitude-thank-you 1
🎉 1
jakemcc23:01:59

ahh, neat. I don't think I've stumbled across splint before