spotless icon indicating copy to clipboard operation
spotless copied to clipboard

maven IDE hook for `jj fix`

Open victornoel opened this issue 8 months ago • 10 comments

Hi,

I am trying to setup jujutsu so that it runs spotless (configured using the maven plugin in my repository) when using jj fix, see https://jj-vcs.github.io/jj/latest/cli-reference/#jj-fix.

The problem is that the requirement from jujutsu is that the tool that does formatting should respect the following rule:

The external tools must accept the current file content on standard input, and return the updated file content on standard output. A tool's output will not be used unless it exits with a successful exit code. Output on standard error will be passed through to the terminal.

Would that be something that could be added to spotless?

Thanks!

victornoel avatar Feb 18 '25 09:02 victornoel