Skip to content

Formatting spock test damages the file #1219

@monrealis

Description

@monrealis

Reformatting this file

import spock.lang.Specification

class MySpec extends Specification {
    def "test"() {
        expect:
        [] == [] 
        toString()
    }
}

results in this

import spock.lang.Specification

class MySpec extends Specification {
    def "test"() {
        expect:
        []== []toString()
    }
}

Notice the space at the end of line 6
image

Groovy Plugin Version: Eclipse Groovy Development Tools 4.0.0.v202012170419-e2012
Eclipse version: Version: 2020-12 (4.18.0) Build id: 20201210-1552

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions