Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter does not inherit whitespaces settings from Java fromatter #941

Open
abialas opened this issue Aug 13, 2019 · 1 comment
Open

Comments

@abialas
Copy link

abialas commented Aug 13, 2019

I have Java formatter settings which should format the following:

def dummyMethod() {
    def doIt=false
    if(doIt) {
        return null
    }
}

into:

def dummyMethod() {
    def doIt = false
    if (doIt) {
        return null
    }
}

However, when I run format on the groovy file it does not add the additional spaces defined by formatter. It works perfectly for Java files.

@mojo2012
Copy link

mojo2012 commented Nov 3, 2019

Also multiple whitespaces are not collapsed into one space:

final def userClone =   (UserData) user.clone()
                      ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants