OyvindSabo / gremlint

Linter/Code formatter for Gremlin
https://gremlint.com
Apache License 2.0
10 stars 6 forks source link

Add support for methods called with curly braces #51

Closed OyvindSabo closed 4 years ago

OyvindSabo commented 4 years ago

Assuming a maximum line width of 30 characters, the following query

g.V().group().by{it.value('name')[1]}.by('name').next()

is currently formatted to

g.V().
  group().
  by{it.value('name')[1]}.by('name').
  next()

but should be formatted to

g.V().
  group().
    by{it.value('name')[1]}.
    by('name').
  next()