OyvindSabo / gremlint

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

Add advanced option toggle for vertically aligned indentation #52

Open OyvindSabo opened 3 years ago

OyvindSabo commented 3 years ago

Assuming a max line length of 35 characters, it should be possible to for instance switch from this:

g.V().
  local(
    union(
      identity(),
      bothE().count()).
    fold())

to this:

g.V().
  local(union(identity(),
              bothE().count()).
        fold())

This will only result in changes to arguments passed to methods.