Skip to content

Formatter: Control repeating spaces between the elements #1225

Open
@rabits

Description

@rabits

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions