clj-kondo

https://github.com/clj-kondo/clj-kondo
dehli 2020-12-01T16:15:52.049700Z

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

borkdude 2020-12-01T16:18:36.051Z

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

šŸ‘ 2
borkdude 2020-12-01T16:24:16.052400Z

@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

dehli 2020-12-01T16:24:46.052800Z

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

borkdude 2020-12-01T16:24:46.053Z

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

1