Fork me on GitHub
#parinfer
<
2017-11-10
>
mattly18:11:58

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

mattly18:11:00

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

dominicm08:11:37

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

mattly21:11:54

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

mattly18:11:32

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

rgdelato18:11:37

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

rgdelato18:11:09

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

chrisoakman19:11:45

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

mattly19:11:00

thanks both of you