OyvindSabo / gremlint

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

Relative indentation within inline non-Gremlin code does not seem to be persisted if no wrapping occurs. #74

Closed OyvindSabo closed 3 years ago

OyvindSabo commented 3 years ago

If we try formatting the following query with a max line length of 80:

 a = g.V().filter(filter(filter())).out().in(filter({ it.get() +
                                                      it.get() }))

we get:

a = g.V().filter(filter(filter())).out().in(filter({ it.get() +
            it.get() }))

but the expected result would be:

a = g.V().filter(filter(filter())).out().in(filter({ it.get() +
                                                     it.get() }))