This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-25
Channels
- # anglican (2)
- # babashka (53)
- # beginners (99)
- # brompton (1)
- # calva (28)
- # circleci (43)
- # clj-commons (4)
- # clj-kondo (176)
- # cljsrn (22)
- # clojars (7)
- # clojure (175)
- # clojure-australia (2)
- # clojure-europe (20)
- # clojure-germany (1)
- # clojure-uk (5)
- # clojurescript (195)
- # cursive (18)
- # datomic (13)
- # emacs (2)
- # farolero (9)
- # find-my-lib (6)
- # fulcro (8)
- # graalvm (12)
- # gratitude (5)
- # helix (11)
- # improve-getting-started (36)
- # introduce-yourself (3)
- # jackdaw (21)
- # jobs (2)
- # joker (2)
- # malli (65)
- # meander (24)
- # nbb (2)
- # off-topic (4)
- # pathom (2)
- # polylith (17)
- # portal (5)
- # react (3)
- # reagent (22)
- # releases (1)
- # ring (4)
- # shadow-cljs (79)
- # show-and-tell (2)
- # testing (5)
- # tools-deps (9)
- # xtdb (12)
What do people use to enforce consistent indentation in clj files? I guess cljfmt
can do it, but is there something else, preferably something minimalistic? Thanks!
cljfmt is minimalistic in that it's quite lenient, it doesn't try canonalicazing your codebase it also nearly matches Emacs' default settings. Which is why it's used in https://github.com/clojure-emacs/ CI
in a couple teams in a row we're all Emacs users so our minimalism can go as far as using no external formatter at all 😄 it still can help to catch the occasional misconfiguration
we don't use any whitespace enforcement in my current job and somehow that's not a problem for us, perhaps because our team uses mainly emacs, vscode and cursive, which perhaps all behave the same out of the box (like cljfmt) and Cursive can be tweaked to do so (I think our Cursive user mentioned this)
Thank you! Somehow our codebase has incorrect indentation (despite some folks using Emacs :)), which prevents me from using Parinfer. I will have a look at what cljfmt would do to the sources....