Skip to content
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

JCLOUDS-1497: Fix checkstyle-suppressions for jcloud-labs #27

Merged
merged 3 commits into from
May 7, 2019

Conversation

oflebbe
Copy link
Contributor

@oflebbe oflebbe commented Apr 30, 2019

This is the jclouds part of fixing checkstyle. jclouds-labs has a couple of violations as well

@oflebbe oflebbe changed the title Jclouds 1497 Fix checkstyle-suppressions for jcloud-labs Apr 30, 2019
@oflebbe oflebbe changed the title Fix checkstyle-suppressions for jcloud-labs JCLOUDS-1497: Fix checkstyle-suppressions for jcloud-labs Apr 30, 2019
@nacx
Copy link
Member

nacx commented May 3, 2019

Closing and re-opening to trigger the build again

@nacx nacx closed this May 3, 2019
@nacx nacx reopened this May 3, 2019
@@ -48,7 +48,7 @@
</module>
<module name="NoWhitespaceBefore"/>
<module name="RedundantImport"/>
<module name="RedundantModifier"/>
<!-- <module name="RedundantModifier"/> -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR LGTM, but why are you removing this check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some static imports (search for "import static") in the code. I am doubting it is worth the effort to fix it. Wdyt ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why this check was not failing before. Anyway, I agree there is little value in this one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check should find redundant modifiers like public in interfaces, not static imports.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I ran a local build and only in core there were more than 40 violations. I fixed them, then found the same in another project... So I agree the value this check provides is close to zero and I think removing it is OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I run the report again, and yeah sorry you are right: The violations where way down the file not on top where the "import static" was used.

@nacx nacx merged commit 92a3c68 into apache:master May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants