Fork me on GitHub
#clj-kondo
<
2020-12-01
>
dehli16:12:52

hello šŸ‘‹ is it possible to have kondo lint for line lengths? iā€™d like to enforce a character limit

borkdude16:12:36

currently clj-kondo is not doing anything with formatting and whitespace related information. there might be tools that are more focused on that like https://github.com/greglook/cljstyle

šŸ‘ 6
borkdude16:12:16

@dehli or you can write a simple babashka script:

$ cat README.md | bb -i -e '(run! (fn [[i l]] (when (> (count l) 80) (println "Line" i "is too long"))) (map vector (range) *input*))'
Line 13 is too long
Line 19 is too long
Line 21 is too long
Line 46 is too long
Line 71 is too long

dehli16:12:46

awesome, thanks so much! i love babashka šŸ™‚

borkdude16:12:46

You could even make that spit out line/col info so you can hook it up to flycheck

thanks2 3