diffplug / diffplug/spotless

` removeSemicolons()` should not be applied to multiline strings in groovy

Aperta
#2,780 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
5.6k
Fork
559
Merge medio
1g 13h
PR unite (30g)
34

Descrizione

I have Groovy code like this:
```
'''
function (doc, meta) {
if (doc._class == "springdata.Doc") {
emit(meta.id, null);
}
}
'''.stripIndent()

```
and when I use `removeSemicolons()` with my spotless Gradle plugin it removes `;` for `emit(meta.id, null);`

That is not expected. Is that possible to fix?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.