leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
2020-04-07T02:32:28.025400Z

Don’t believe so

chadhs 2020-04-07T10:59:35.025500Z

@teodorlu it’s not pretty but i have a format.sh with this

#!/usr/bin/env zsh

unset CLASSPATH

lein zprint src/**/*.clj*

chadhs 2020-04-07T11:00:08.025700Z

and an alias using lein-shell like this

"format" ["shell" "./format.sh"]

teodorlu 2020-04-07T11:01:02.025900Z

Nice! -- Well, depends on our definition of nice. Glad you got it working 🙂

teodorlu 2020-04-07T11:01:22.026100Z

Seems like a good case for ZSH, actually. As long as ZSH is installed.

chadhs 2020-04-07T11:52:29.026300Z

that’s the rub. not sure if i want to rely on that. it’s on macs by default; so i’ll have to think on that more.

chadhs 2020-04-07T11:54:04.026500Z

goal is pre-commit hook that will format with zprint and then lint with clj-kondo all using dev deps and aliases in project.clj so there’s no reliance on having the os binaries of those tools installed.

teodorlu 2020-04-07T12:10:05.026700Z

Is find preinstalled on macs? I don't think I've found a Linux system missing it.

lein zprint `find src -iname '*.clj'
`