greglook / cljstyle

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

Multi arity functions indentation has extra space #46

Closed felipethome closed 3 years ago

felipethome commented 4 years ago

After running check this is the result for multiple arity functions:

 (defn a
   ([x]
-   (a x 2))
+    (a x 2))
   ([x y]
-   (* x y)))
+    (* x y)))

Is this the expected behavior?

https://github.com/bbatsov/clojure-style-guide#multiple-arity-indentation

greglook commented 4 years ago

This seems like a bug, but I can't reproduce it. What version are you running, and what configuration are you setting?

% cljstyle version
mvxcvi/cljstyle 0.12.1 (da04c9f4b2167749918bd8bea4e3fd0f3bd5e2ed)

% cljstyle pipe
(defn a
  ([x]
   (a x 2))
  ([x y]
   (* x y)))
^D
(defn a
  ([x]
   (a x 2))
  ([x y]
   (* x y)))
felipethome commented 4 years ago

This happened after I replaced every indentation with [[:inner 0]]. I will get the version and config and post here.

greglook commented 3 years ago

Please reopen if this is still an issue.