-
Notifications
You must be signed in to change notification settings - Fork 40
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
build: change checkstyle to google code format, plus adding spotless #1264
build: change checkstyle to google code format, plus adding spotless #1264
Conversation
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
a2ce53a
to
35aad9b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1264 +/- ##
============================================
+ Coverage 93.47% 93.69% +0.21%
Complexity 464 464
============================================
Files 43 43
Lines 1088 1110 +22
Branches 86 89 +3
============================================
+ Hits 1017 1040 +23
+ Misses 44 43 -1
Partials 27 27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
96b02b3
to
e01f15b
Compare
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
e01f15b
to
363602e
Compare
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
... added contributing.md section |
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.
Thank you for adding this.
Not sure if it should be part of this PR, but do we plan to check/autocorrect in pre-commit hooks and our CI pipeline?
actually this should be automatically part of maven verify - based on the docs ... but it seems like i accidentally bound it to the wrong profile, i will fix this |
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
added |
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Quality Gate passedIssues Measures |
We regularly fight with code styles in pull requests, which is annoying to both the contributors and the maintainers.
There are tools out there, like Spotless, that can automate those processes. We could define our code style, but there is already one widely used code style from Google (Google Java format).
Existing plugins help us follow this code style within IntelliJ and Visual Studio Code. Switching to this definition can improve the overall experience.
This supersedes the pull request with
.editorconfig
notes
Disclaimer
This pull request should be used to discuss this; most people do not have significant opinions regarding code styles as long as there are tools to enforce them. Now we have a maven target,
spotless:apply
, which will inform you about violations and fix them.relates to: https://github.com/open-feature/java-sdk-contrib/pull/1121/checks