-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix checkstyle check #10537
Fix checkstyle check #10537
Conversation
Signed-off-by: Lukas Kral <[email protected]>
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.
Please explain what exactly is the problem because it clearly is passing on the CI.
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.
One more comment -> leaving aside that nothing seems to be failing ... you should not exclude all the checks. If you do Javadocs in any of these parts we don't check, you should still do them properly. They should just not be mandatory.
I'm mentioning it in the description - because of the
Sorry, I'm not sure if I understand. I'm just skipping those errors that are related to Javadoc (and which you added in the previous PR). Those skips are related to the tests modules/folders. |
Ok, I guess that is my mistake, sorry. But that is not what I understood from the description so maybe you should make it more clear.
The point is that if you use Javadocs, you should still do them correctly. E.g. with the right style, with all prarameters etc. So you should not exclude all the checks. You should only exclude the checks that require the Javadocs for the public fields. I.e., if you don't use Javadocs, you should be fine. If you use them, use them correctly. |
Yeah sorry, I will make it clear in the description.
Okay, I will check that. Thanks |
Signed-off-by: Lukas Kral <[email protected]>
@scholzj I've updated the checks (removed the skipped error types that I added) and the code based on the checkstyle errors I got. The description is updated as well. Could you please have another look? Thanks! |
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.
Isn't it missing the systemtests
module?
topic-operator/src/test/java/io/strimzi/operator/topic/LogCaptor.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/utils/specific/MinioUtils.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/utils/kubeUtils/objects/BuildUtils.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/resources/imageBuild/ImageBuild.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/resources/NamespaceManager.java
Outdated
Show resolved
Hide resolved
.../java/io/strimzi/systemtest/kafkaclients/clientproperties/AbstractKafkaClientProperties.java
Outdated
Show resolved
Hide resolved
operator-common/src/test/java/io/strimzi/operator/common/operator/MockCertManager.java
Outdated
Show resolved
Hide resolved
operator-common/src/test/java/io/strimzi/operator/common/operator/MockCertManager.java
Outdated
Show resolved
Hide resolved
...c/test/java/io/strimzi/operator/cluster/operator/assembly/AbstractResourceStateMatchers.java
Outdated
Show resolved
Hide resolved
That's covered by the |
Signed-off-by: Lukas Kral <[email protected]>
I don't think it should ... what about issues like these: strimzi-kafka-operator/systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaST.java Lines 1102 to 1122 in fd74272
|
That doesn't seem to be a problem during the build. It has a problem with |
Wait, you fixed those. I somehow missed it in the diff. |
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.
Thanks.
/azp run build |
Azure Pipelines successfully started running 1 pipeline(s). |
Type of change
Description
This PR fixes the checkstyle check after the #10527 - the
[]
brackets are not recognizable by the checkstyle plugin, which caused that all the errors were skipped (mainly in the tests modules folders/modules). That means -> if we remove some class and the import is unused, normally it would cause that we get theUnusedImport
error from checkstyle. But because all of the errors were skipped, we got the successful build even when the unused import was there.Also, some of the checks were wrongly named.
I'm changing the
[]
brackets to()
, changing the check types to correct ones and also adding more checks that are hit during the build.Checklist