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
{{ message }}
Repository navigation
google-java-format does not respect the --lines option #1000
Changing the --lines option to any of the aliases -lines, --line, -line does not make a difference.
Also using --offset and --length does not make a difference. Although these options are so poorly documented I'm not sure if I am using them correctly.
The feature that wraps long string literals applies to the entire file, it doesn't support partial formatting. This is affecting this example because the lines are longer than 100 characters long, and contain string literals, so the logic string reflowing is applied.
-lines has the expected behaviour if string reflowing is disabled:
Activity
cushon commentedon Dec 8, 2023
The feature that wraps long string literals applies to the entire file, it doesn't support partial formatting. This is affecting this example because the lines are longer than 100 characters long, and contain string literals, so the logic string reflowing is applied.
-lineshas the expected behaviour if string reflowing is disabled: