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

Identation off for protocol with metadata #343

Open
vemv opened this issue Mar 17, 2024 · 0 comments
Open

Identation off for protocol with metadata #343

vemv opened this issue Mar 17, 2024 · 0 comments

Comments

@vemv
Copy link
Contributor

vemv commented Mar 17, 2024

Hi,

I'm working on a custom defprotocol which can be tweaked via metadata.

I'm finding that cljfmt wants to add extra indentation if metadata is found, i.e.:

(defprotocol Chat
  :extend-via-metadata true
   (^{:schema [:or
               (success-with)
               (failure-with :error-details any?)]}
-   add-user-to-private-channel [this user-id channel-id])
+    add-user-to-private-channel [this user-id channel-id])

Emacs clojure-mode does not add the extra indentation. Probably we can consider cljfmt as the one being 'wrong' since defprotocol indentation should not vary in presence of metadata.

Thanks - V

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

No branches or pull requests

1 participant