diffplug / diffplug/spotless

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

Open
#2,780 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.