greglook / cljstyle

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

import statements in ns are splited #78

Open dpom opened 2 years ago

dpom commented 2 years ago

cljstyle splits import statements:

(:import
   (java.text 
       SimpleDateFormat)
   (java.util
       Date))

but i would like to be:

(:import
   (java.text SimpleDateFormat)
   (java.util Date))

I tried with this config

{
 :rules {:blank-lines {:max-consecutive 1
                       :padding-lines 1}
         :indentation {:indents {#"^[^ \[]" [[:inner 0]]}}
         :namespaces {:import-break-width 200
                      :single-import-break-width 200}}
}

but it doesn't work How could I obtain this behavior?

greglook commented 6 months ago

Have you tried setting :break-libs? false in the namespace rule config?