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: Control repeating spaces between the elements #1225

Open
rabits opened this issue Feb 2, 2021 · 1 comment
Open

Formatter: Control repeating spaces between the elements #1225

rabits opened this issue Feb 2, 2021 · 1 comment

Comments

@rabits
Copy link

rabits commented Feb 2, 2021

Hello folks,

Found that the style checker doesn't verify the additional spaces between the elements, for example:

class    TestClass    {
  def   testCall     (  var  =   null  )      {
    if    (  var    !=  null  )    {
      for   (   def i = 0    ;  i < 2;   i  ++  )
        testCall   (  var  ?  null  :  {   a  ,  b  ->   null    }   )
    }    else   {
      while    (    false  )    {
        def test1 =     'test1'
        def test2     =   'test2'
        def     test3  =  'test3'
        def    val    =     new    TestClass(   )
      }
    }
  }
}

And what it's doing right now by default - is just fixing the indent (replacing with tabs instead of double spaces), the rest is left the same...

@eric-milles
Copy link
Member

See also #941

@eric-milles eric-milles changed the title Control repeating spaces between the elements Formatter: Control repeating spaces between the elements Feb 3, 2021
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

2 participants