Skip to content

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

@AlexeyKuznetsov-DD

Description

@AlexeyKuznetsov-DD

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions