greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Documentation improvement suggestions #37

Open bbatsov opened 4 years ago

bbatsov commented 4 years ago

Hey there!

I just came across the project (which looks pretty cool, btw) and I have a couple of small suggestions to improve the docs:

Thanks for the great project! 🙇

greglook commented 4 years ago

Hi bbatsov, thanks! Publishing would be neat - there are links from the relevant README sections, but maybe they're not discoverable enough.

I'll put the rationale in a doc, but there were a couple of things I wanted when I first forked cljfmt:

The defaults are indeed mostly from the community style guide, with the main exception being the default two-space indent. That's configurable back to one space for those who want it, but it never really made sense to me.

bbatsov commented 4 years ago

Sounds good to me!

The defaults are indeed mostly from the community style guide, with the main exception being the default two-space indent. That's configurable back to one space for those who want it, but it never really made sense to me.

I know this is probably the most controversial topic when it comes to code layout, but I was doing Lisp(s) way before Clojure, so I got used to this a long time ago. :-) As a bonus - it makes it really easy to spot some macro that operates on a body of code and function calls with multi-line arguments. Anyways, I understand your point.