maven IDE hook for `jj fix`
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 43
Beschreibung
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!
Beitragsleitfaden
Rechercherichtung
Beginne damit, Spotless' Maven-Plugin-Integration und den Ausführungspfad des Formatierers nachzuverfolgen, und vergleiche sie anschließend mit dem stdin/stdout-Vertrag von `jj fix` in der verlinkten CLI-Referenz. Als erledigt gilt die Aufgabe, wenn die Maven-basierte Integration den aktuellen Dateiinhalt über die Standardeingabe einlesen, formatierten Inhalt über die Standardausgabe ausgeben und das Verhalten von Exit und Standardfehler wie beschrieben behandeln kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- build-system, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100