diff options
author | mark.j.leonard <mark.j.leonard@gmail.com> | 2019-04-09 16:53:15 +0100 |
---|---|---|
committer | mark.j.leonard <mark.j.leonard@gmail.com> | 2019-04-09 16:59:28 +0100 |
commit | b1dd94def085d9ad213245ef74cd4e616768d99f (patch) | |
tree | 8519104716d28c043ebbf53386e43d90de344960 /onap-java-formatter.xml | |
parent | 703072969c51068d6a7aadf7131a545eabab87cd (diff) |
Fix wrapped line formatting
Update the setting "Default indentation for wrapped lines" to be 2 units
of indentation (as per the standard Google style guide formatter).
This causes a continued line to be indented differently to the following
code block and distinguishes a wrapped line from a non-wrapped line.
Also update the array initializer indentation to match, so that array
values are horizontally aligned with other initializers such as List
contructors and also with standard expressions.
Both settings are now identical with the Google-supplied formatter.
Change-Id: I05dd2b3ff522c75bb6aaf2c03017874d42e215c7
Issue-ID: AAI-2198
Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'onap-java-formatter.xml')
-rw-r--r-- | onap-java-formatter.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/onap-java-formatter.xml b/onap-java-formatter.xml index 368ede19..459179e8 100644 --- a/onap-java-formatter.xml +++ b/onap-java-formatter.xml @@ -72,8 +72,8 @@ <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> -<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="1"/> -<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> <setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/> <setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> |