-
Notifications
You must be signed in to change notification settings - Fork 47
[SPARK-52201] Revisit PMD annotations
#210
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
| import org.apache.spark.metrics.sink.Sink; | ||
|
|
||
| @SuppressWarnings("PMD") | ||
| @SuppressWarnings("PMD.UnusedPrivateField") |
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 is only one warning in this file.
|
|
||
| @EnableKubernetesMockClient(crud = true) | ||
| @TestMethodOrder(MethodOrderer.OrderAnnotation.class) | ||
| @SuppressWarnings("PMD") |
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.
We don't need this.
| import org.apache.spark.k8s.operator.utils.SparkAppStatusRecorder; | ||
|
|
||
| @EnableKubernetesMockClient(crud = true) | ||
| @SuppressWarnings("PMD") |
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.
This file is added newly, but we don't need this.
798fdd2 to
909fefc
Compare
| import org.apache.spark.k8s.operator.metrics.healthcheck.SentinelManager; | ||
|
|
||
| @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert") | ||
| @SuppressWarnings("PMD.UnitTestShouldIncludeAssert") |
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.
This is renamed at PMD 7.
| import org.apache.spark.k8s.operator.utils.ProbeUtil; | ||
|
|
||
| @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert") | ||
| @SuppressWarnings("PMD.UnitTestShouldIncludeAssert") |
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.
This is renamed at PMD 7.
|
Thank you, @viirya . Merged to main. |
What changes were proposed in this pull request?
This PR aims to revisit
PMDannotations.Why are the changes needed?
We can remove or reduce the scope.
BEFORE
AFTER
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual review.
Was this patch authored or co-authored using generative AI tooling?
No.