-
Notifications
You must be signed in to change notification settings - Fork 14.9k
MINOR: Add SanityCheck #21165 [S3599]
#21168
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,20 +29,22 @@ buildscript { | |
| } | ||
|
|
||
| plugins { | ||
| id 'com.github.ben-manes.versions' version '0.53.0' | ||
| id 'idea' | ||
| id 'jacoco' | ||
| id 'java-library' | ||
| id 'com.diffplug.spotless' version '8.1.0' | ||
| id 'com.github.ben-manes.versions' version '0.53.0' | ||
| id 'com.github.spotbugs' version '6.4.4' apply false | ||
| id 'com.gradleup.shadow' version '8.3.9' apply false | ||
| id 'io.swagger.core.v3.swagger-gradle-plugin' version "${swaggerVersion}" | ||
| id 'org.nosphere.apache.rat' version '0.8.1' | ||
| id 'org.openrewrite.rewrite' version '7.22.0' apply false | ||
| id 'org.owasp.dependencycheck' version '12.1.8' | ||
| id 'org.nosphere.apache.rat' version "0.8.1" | ||
| id "io.swagger.core.v3.swagger-gradle-plugin" version "${swaggerVersion}" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if desired will undo.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the cleanup. Like it. |
||
|
|
||
| id "com.github.spotbugs" version '6.4.4' apply false | ||
| id 'org.scoverage' version '8.1' apply false | ||
| id 'com.gradleup.shadow' version '8.3.9' apply false | ||
| id 'com.diffplug.spotless' version "8.0.0" | ||
| } | ||
|
|
||
| apply from: "$rootDir/gradle/rewrite.gradle" | ||
|
|
||
| ext { | ||
| minClientJavaVersion = 11 | ||
| minNonClientJavaVersion = 17 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,12 +88,6 @@ public static ShareAcknowledgeResponse parse(Readable readable, short version) { | |
| ); | ||
| } | ||
|
|
||
| private static boolean matchingTopic(ShareAcknowledgeResponseData.ShareAcknowledgeTopicResponse previousTopic, TopicIdPartition currentTopic) { | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this now being the only one unused. Asking to include here to make, or dedicate/extract? Sanity Check made to be generic and still individual. |
||
| if (previousTopic == null) | ||
| return false; | ||
| return previousTopic.topicId().equals(currentTopic.topicId()); | ||
| } | ||
|
|
||
| public static ShareAcknowledgeResponseData.PartitionData partitionResponse(TopicIdPartition topicIdPartition, Errors error) { | ||
| return partitionResponse(topicIdPartition.topicPartition().partition(), error); | ||
| } | ||
|
|
||
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.
just wanted to align and give natural order.
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.
If I read this correctly,
org.openrewrite.rewriteis newly added? Others are just reordered.I am not familiar with this package. Curious to hear from others about it.
Uh oh!
There was an error while loading. Please reload this page.
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.
correct.
This versatile SCA tool is already running in checkstyle and spotless.
Highly welcome any feedback, thx.