Currently, for nested steps, lines can sometimes be longer than the specified maximum line length because the function which checks the length does not know how deeply nested the steps are. Furthermore, commas or punctuation at the end of lines are not taken into consideration.
An example where closing parentheses are ignored:
Consider the following query formatted with a max line length of 66:
There is currently a commented out test for this in gremlint/src/formatQuery/__tests__/maxLineLength.test.ts which should be uncommented upon completion of this task.
An example where comma at the end of the line is ignored
Consider the following query formatted with a max line length of 22:
Currently, for nested steps, lines can sometimes be longer than the specified maximum line length because the function which checks the length does not know how deeply nested the steps are. Furthermore, commas or punctuation at the end of lines are not taken into consideration.
An example where closing parentheses are ignored:
Consider the following query formatted with a max line length of 66:
It is formatted like this (67 characters wide):
It is expected to be formatted like this:
A test case for this should be added to
gremlint/src/formatQuery/__tests__/maxLineLength.test.ts
.An example where punctuation at the end of the line is ignored:
Consider the following query formatted with a max line length of 45:
It is formatted like this (46 characters wide):
It is expected to be formatted like this:
There is currently a commented out test for this in
gremlint/src/formatQuery/__tests__/maxLineLength.test.ts
which should be uncommented upon completion of this task.An example where comma at the end of the line is ignored
Consider the following query formatted with a max line length of 22:
It is formatted like this (23 characters wide):
It is expected to be formatted like this:
A test case for this should be added to
gremlint/src/formatQuery/__tests__/maxLineLength.test.ts
.