You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a feature in cljfmt to exclude (comment) blocks from formatting. This is essential for those of us using these blocks for REPL-based development, as current formatting disrupts the workflow.
Suggested config
Allow specifying forms to exclude in the configuration, like:
:exclude [#"^comment"]
Impact
This addition would greatly aid developers who rely on specific formatting within (comment) blocks for efficient REPL interaction.
Thanks for your work on cljfmt!
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. I think I'd prefer a boolean :ignore-comment-forms? as an option instead for this, as it lends itself more easily to a command-line switch: --ignore-comment-forms.
That works, but that is less flexible, I thought there would be other use cases for this.
The other option could be to introduce an --ignore-comment-forms option that will set the exclude config to comment, and if you want to have more fine-grained control, then you could set the exclude manually.
Of course, then the CLI options would divert a bit from the config. The third option would be to add both. :)
Request
Implement a feature in
cljfmt
to exclude(comment)
blocks from formatting. This is essential for those of us using these blocks for REPL-based development, as current formatting disrupts the workflow.Suggested config
Allow specifying forms to exclude in the configuration, like:
:exclude [#"^comment"]
Impact
This addition would greatly aid developers who rely on specific formatting within (comment) blocks for efficient REPL interaction.
Thanks for your work on
cljfmt
!The text was updated successfully, but these errors were encountered: