cljfmt icon indicating copy to clipboard operation
cljfmt copied to clipboard

A tool for formatting Clojure code

Results 74 cljfmt issues
Sort by recently updated
recently updated
newest added

I think it would be awesome if cljfmt had a feature where it would detect/fix bad var casing, e.g.: ```clojure (deftype serviceRef ...) (defn addOne [myNum] (inc myNum)) ;; =>...

Give the following code: ``` (-> zz (as-> x foo)) ``` It should be formatted as: ``` (-> zz (as-> x foo)) ``` Which also happens to be what emacs...

This is what cljfmt wants: ``` (defn foo [{:keys [aa ;; bb ]:as context} ; whitespace problem here ``` But obviously a space is wanted before the `:as`. This is...

Hello! I have a mystery. With :indents ^:replace {#"^\w" [[:inner 0]]} this is aligned as I want: (defn X ([args] (doit))) but if I put any line (normally I would...

`let` macroexpands to `let*`. `let*` doesn't appear to be a 'thing' (actual macro), but still it seems a good target to be indented. Sometimes I include macroexpansions as part of...

Hi, Given ``` (first [123 1 2 3 4 5] ``` When ``` I run 'lein cljfmt fix' ``` Then ``` I would expect (first [123 1 2 3 4...

For editor integration it would be useful to have a mode that reads from stdin, formats, and writes to stdout. I think a separate command, say `pipe`, would be ideal....

As most users, I use linters and formatters mainly in my editor, but also to check or fix a larger code base at the command line or in workflows. For...

Hi, in the documentation it is stated that symbols can be matched via reg-ex patterns like: ``` clojure :cljfmt {:indents ^:replace {#".*" [[:inner 0]]}} ``` `cljfmt` is embedded in many...

Hi, here is an Emacs->cljfmt difference: ```diff - (let [ ;; foo bar + (let [;; foo bar ``` which is unfortunate because so often cljfmt matches Emacs. I wonder...