OyvindSabo / gremlint

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

If there are multiple instances of g.V(), format all of them consistently #21

Closed OyvindSabo closed 5 years ago

OyvindSabo commented 5 years ago

It turns out that this was only partially fixed.

It does not solve the following case:

g.V().has(
        'parent', within(
          g.V().has('name', 'Work').
          id().
          toSet())).
      values('hours').
      sum()

It should yield

g.V().has(
        'parent', within(
          g.V().has('name', 'Work').
                id().
                toSet())).
      values('hours').
      sum()