cljstyle icon indicating copy to clipboard operation
cljstyle copied to clipboard

import statements in ns are splited

Open dpom opened this issue 3 years ago • 1 comments

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?

dpom avatar Sep 22 '21 16:09 dpom

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

greglook avatar Jan 05 '24 20:01 greglook