groovy-eclipse icon indicating copy to clipboard operation
groovy-eclipse copied to clipboard

Formatter: Control repeating spaces between the elements

Open rabits opened this issue 4 years ago • 1 comments

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...

rabits avatar Feb 02 '21 20:02 rabits

See also #941

eric-milles avatar Feb 03 '21 15:02 eric-milles