Java source normalization (fixes #516)#631
Open
svanteschubert wants to merge 3 commits intoopenpreserve:integrationfrom
Open
Java source normalization (fixes #516)#631svanteschubert wants to merge 3 commits intoopenpreserve:integrationfrom
svanteschubert wants to merge 3 commits intoopenpreserve:integrationfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## integration #631 +/- ##
=================================================
+ Coverage 45.63% 45.69% +0.05%
Complexity 1046 1046
=================================================
Files 57 57
Lines 9149 8783 -366
Branches 1687 1679 -8
=================================================
- Hits 4175 4013 -162
+ Misses 4424 4225 -199
+ Partials 550 545 -5
Continue to review full report at Codecov.
|
Contributor
Author
|
Please note, that this normalization step causes a lot of noise to prevent noise in the future. |
Member
|
Now we're back up and running properly, I'm interested. I'll look to reproduce this once 1.26 is out of the door. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have fixed the same problem today for the ODF Toolkit: tdf/odftoolkit#50
Using the Google Java Formatter:
https://github.com/google/google-java-format
Capsulated by the following Maven plugin:
https://github.com/Cosium/maven-git-code-format
adding a pre-commit-hook for checking the Java code.
You might reproduce the patch by:
mvn -X git-code-format:format-code -Dgcf.globPattern=**/*There will be half a dozen problems with comments of unused imports within the Java imports, which breaks the formatting, but after the manual fixes, you will come to my patch.
NOTE: The ODF Toolkit is using in addition to the above Java formatter a whitespace formatter for the text files:
https://ec4j.github.io/editorconfig-maven-plugin/
See in https://github.com/tdf/odftoolkit/blob/master/pom.xml#L257
and its configs:
https://github.com/tdf/odftoolkit/blob/master/.editorconfig