-
Notifications
You must be signed in to change notification settings - Fork 218
fix: spotless plugin activation issue #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@csviri unforunately, I can't find a way to allow EDIT: I see that we use |
782edd0
to
af8bf6f
Compare
}; | ||
} | ||
} | ||
static boolean getBooleanFromSystemPropsOrDefault(String propertyName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so I guess the switch issue with the new spotless version is not resolved, it's more that it wasn't getting applied anymore… We should probably revert to an older version then because that formatting of switch statements is a no-go.
372f6ba
to
bca9e17
Compare
@@ -65,7 +65,7 @@ | |||
<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> | |||
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="do not insert"/> | |||
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |||
<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather stay on an older version while is this fixed in spotless, or is it not expected to be fixed?
can we create an issue for spotless regarding this?
I propose to move to this https://github.com/diffplug/spotless/blob/main/plugin-maven/README.md#google-java-format which would remove the need for a custom config file and should follow latest google styles - https://github.com/google/google-java-format/releases. If agreed, I can make a new PR with this move so we avoid back and forth formatting changes. I really don't like that we can't keep the same format options because spotless changed. |
could you pls do a separate PR to see how that would look like? |
Signed-off-by: xstefank <[email protected]>
Signed-off-by: xstefank <[email protected]>
bca9e17
to
b47a75c
Compare
Fixes #2697