parinfer

mattly 2017-11-10T18:09:58.000458Z

question: is there a sort of “formatting gauntlet” test file that you use to ensure parinfer behaves as expected?

mattly 2017-11-10T18:11:00.000298Z

my team is settling on an indentation style for clojure and we’re trying to get the emacs, vim, cursive and atom people all on the same page for our tooling

dominicm 2017-11-11T08:49:37.000066Z

Bit OT, but I'd love to see a write up if you manage to succeed. We've found this immensely difficult.

mattly 2017-11-11T21:39:54.000049Z

it’ll end up in our wiki if we do, and for the most part we’d like to give back, so I’ll make the case for that

mattly 2017-11-10T18:11:32.000233Z

since there are a lot of lisp newbies and it’s more friendly, I’m strongly advocating for parinfer, but the project lead is an old-time emacs guy

rgdelato 2017-11-10T18:23:37.000351Z

I'm not sure exactly how to get it to work in Clojure-land, but wiring up something like parlinter or cljfmt as a Git precommit hook might be a good solution, so even those who don't use Parinfer will always commit Parinfer-friendly code

rgdelato 2017-11-10T18:27:09.000551Z

as for the "formatting gauntlet," there are definitely a bunch of test cases in the repo if you want to look through: https://github.com/shaunlebron/parinfer/tree/master/lib/test/cases

chrisoakman 2017-11-10T19:18:45.000323Z

@mattly I agree with what @rgdelato says --^ Check out Parlinter as a light-weight tool to enforce indentation style: https://github.com/shaunlebron/parlinter

mattly 2017-11-10T19:18:56.000279Z

ah neat

mattly 2017-11-10T19:19:00.000423Z

thanks both of you