bhauman / bhauman/clojure-mcp-light
Skip cljfmt formatting when running clj-paren-repair
- Dominant language
- Clojure
- Stars
- 188
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
> The tool automatically formats files with cljfmt when it processes them.
I use zprint formatter for my projects. In the rare cases when my Claude has to use clj-paren-repair, cljfmt formats the file and Claude gets very confused. Claude made an edit to a clojure file, somehow it got the parens wrong. It used the tool to fix the missing paren, but according to Claude post formatting there were a lot more mismatched parens. It gave up trying to fix them and checked out the file and started again.
The way the claude hook can choose to not format files via cljfmt, can we have this tool also not format by cljfmt. I can understand doing that by default would be a breaking change, so maybe adding a `skip-formatting` flag?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating where clj-paren-repair invokes cljfmt and compare that behavior with the Claude hook's option to skip formatting. Add the requested skip-formatting behavior without preventing parenthesis repair, then verify that formatting is bypassed when requested and remains unchanged by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100