-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
chore: use Google Java Format to format Java code automaticlly by github action #4200
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Codecov Report
@@ Coverage Diff @@
## master #4200 +/- ##
============================================
+ Coverage 52.56% 52.58% +0.01%
- Complexity 2623 2625 +2
============================================
Files 484 484
Lines 15200 15200
Branches 1571 1571
============================================
+ Hits 7990 7993 +3
+ Misses 6651 6650 -1
+ Partials 559 557 -2
Continue to review full report at Codecov.
|
@apolloconfig/committers Is it possible let @github-actions sign the CLA? |
What about add github-actions to this JSON file directly? |
@Anilople @zouyx We could add apollo/.github/workflows/cla.yml Line 40 in 0e4542e
|
Done. |
@Anilople It looks like we need to submit a standalone pull request to add |
recheck |
4d6726c
to
d18067b
Compare
131dcb7
to
1965838
Compare
...ce/src/main/java/com/ctrip/framework/apollo/adminservice/aop/NamespaceAcquireLockAspect.java
Outdated
Show resolved
Hide resolved
...service/src/main/java/com/ctrip/framework/apollo/adminservice/aop/NamespaceUnlockAspect.java
Outdated
Show resolved
Hide resolved
948b725
to
16c62bc
Compare
@Mock | ||
private NamespaceLockService namespaceLockService; | ||
@Mock | ||
private NamespaceService namespaceService; | ||
@Mock | ||
private ItemService itemService; | ||
@Mock | ||
private BizConfig bizConfig; | ||
@InjectMocks | ||
NamespaceAcquireLockAspect namespaceLockAspect; | ||
@Mock private NamespaceLockService namespaceLockService; | ||
@Mock private NamespaceService namespaceService; | ||
@Mock private ItemService itemService; | ||
@Mock private BizConfig bizConfig; | ||
@InjectMocks NamespaceAcquireLockAspect namespaceLockAspect; |
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.
Is it possible to keep the annotations on top of the fields?
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.
Find the issue google/google-java-format#648 about it.
It seem that this feature didn't support yet.
Maybe we can wait the feature.
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.
emm...I think this is an important feature as most of the developers would be more comfortable with the annotation in its own line?
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 161 files out of 300 files are above the max files limit of 75. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
What's the purpose of this PR
Auto format Java code when people push or pull request.
Which issue(s) this PR fixes:
Fixes #4196
Brief changelog
.github/workflows/google-java-format.yml
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.