cljfmt icon indicating copy to clipboard operation
cljfmt copied to clipboard

Custom Output Pattern

Open finalfantasia opened this issue 2 years ago • 2 comments

It would be great if cljfmt supported custom output pattern so that it can be better integrated with GitHub Actions. clj-kondo supports this and it makes problem reporting much nicer.

finalfantasia avatar Jul 18 '23 19:07 finalfantasia

That's a very good idea. I'll look into adding it when I get a little time (which should be faiiirly soon).

weavejester avatar Jul 18 '23 19:07 weavejester

Looks like this is more difficult to support than it initially appears, at least if we want to get reasonable output. Multi-line support requires URL-escaping the log message, for example, and ideally we'd want to give each chunk of the diff its own warning message with a start and end line number.

I don't think a custom output pattern by itself would be sufficient; we'd probably need a dedicated GitHub reporter.

weavejester avatar Jul 26 '23 11:07 weavejester