You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would guess much of this is due to the formatter trying to be smarter than needed (likely: trying to keep long lists on a single line, and then breaking lines further up in the formatter stack when controlling the line width). I'd guess more aggressively inserting line breaks could resolve this, e.g., if an enum decl, record initializer, or function decl or call has more than a single element, always break the line between elements. This might produce slightly more lines than the current impl but would look much more uniform.
If you are interested in working on this @anthonykasza I can point you the right places if needed.
Note the function oneliner was formatted to a multi-line function definition.
Currently, Zeek has a script in base with the following:
The formatter tries to re-format it to:
Note the function oneliner was formatted to a multi-line function definition.
Additionally, the following is an example of a record spanning multiple lines and how it is formatted by zeek-format.
In both cases I find the first version much more readable. This is issue similar to 10.
The text was updated successfully, but these errors were encountered: