-
Notifications
You must be signed in to change notification settings - Fork 148
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
activate sourcecode formatting #247
Conversation
Have you considered using fmt-maven-plugin?
And to directly use it's format goal to reformat sources, you can manually execute |
i have not compared fmt-maven-plugin, but as far as i can see formatter-maven-plugin offers the same. you can both format source code as well as verify it. |
as per github stats, fmt-maven-plugin is used by 185 repos and formatter-maven-plugin is used by 2.5k repos. |
It appears Also, do we need to configure these plugins to also handle the > Java 8 code directories ( |
@@ -1,36 +1,36 @@ | |||
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ |
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 think we may want to also remove all these editor hints at the top of all the files too?
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.
yes makes sense
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.
Did we want to handle removal of these editor hints in this PR or do that separately?
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 will add it to this one
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.
Do we know what's causing the test failures during CI builds?
I looked at it. The problem seems to be the docker bind mount of the temporary directory. We need to move the temp directory to the current workspace. |
Bumps scala-maven-plugin from 4.7.2 to 4.8.0. --- updated-dependencies: - dependency-name: net.alchim31.maven:scala-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/apache/maven-dependency-plugin/releases) - [Commits](apache/maven-dependency-plugin@maven-dependency-plugin-3.3.0...maven-dependency-plugin-3.4.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-dependency-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
that was a problem I had within Github Codespaces environment. The other problem was now resolved by downgrading the runner image to ubuntu 20.04 |
I think we may want to add |
Disregard, I missed that formatter:validate is tied to verify phase, so it has to happen during the |
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 think we should do a squash merge of this so it's a single commit.
This will use formatting rules of
eclipse-java-google-style.xml
to format the source code in mavenprocess-sources
phase.There should be only whitespace changes in java files.
Checkstyle Plugin is added, but not used by default, since current code would have 2640 violations against
Google-Style
.Cleaning these up is an additional effort.