Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import statements in ns are splited #78

Open
dpom opened this issue Sep 22, 2021 · 1 comment
Open

import statements in ns are splited #78

dpom opened this issue Sep 22, 2021 · 1 comment
Labels

Comments

@dpom
Copy link

dpom commented Sep 22, 2021

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
Copy link
Owner

greglook commented Jan 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants