spotless
spotless copied to clipboard
` removeSemicolons()` should not be applied to multiline strings in groovy
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?
Yeah, this should be fixed.
It also remove ; from comments :)
kind of not expected too...
Thanks for the detailed report given.
This seems to fix the issue:
- https://github.com/diffplug/spotless/pull/2792
Thanks! Will test once it will be released.