greglook / cljstyle

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

Add options to ignore comments and discards #89

Open frankitox opened 2 years ago

frankitox commented 2 years ago

Hi :wave:!

I have a feature request regarding macro comments and the discard macro reader. I would like to format those and found a TODO comment in the codebase:

https://github.com/greglook/cljstyle/blob/14c18e5b593c39bc59f10df1b894c31a0020dc49/src/cljstyle/format/zloc.clj#L126-L132

I wrote a couple of lines to address it in a fork. Would you be interested in merging something like this? I'll write tests, docs and take any feedback you have about it (I'm not even sure if the approach I chose is any good!).