Skip to content

Conversation

@vinodkc
Copy link
Contributor

@vinodkc vinodkc commented May 10, 2017

Using google-java-format IntelliJ plugin , autoformated storm-webapp module

private final Server _httpServer;
private Thread _handlerServerThread;
private boolean _closed = false;
public DRPCServer(Map<String, Object> conf) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This auto-generated formatting this is SOOOOO much less readable to me. Is this because of our checkstyle settings? Removing a newline that separates lines is just wrong, and having method calls with their parameters way to the left of the method names is no bueno.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Recently we have integrated google_checks.xml and because of that checkstyle rules it is formatting code like that. Most of the changes are reordering methods/fields and removal of extra tabs from beginning of line .
Please give your suggestions on whether to add project specific checkstyle rules in storm

Copy link
Contributor

@erikdw erikdw May 10, 2017

Choose a reason for hiding this comment

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

My experience has been that auto-formatting tools all suck. But I'll try to set aside some time to figure out how to make this one suck a little bit less. I really cannot stand this output, I cannot read it. Humans are not computers, spacing and aesthetics matter a lot.

@vinodkc
Copy link
Contributor Author

vinodkc commented May 10, 2017

retest this please

1 similar comment
@vinodkc
Copy link
Contributor Author

vinodkc commented May 10, 2017

retest this please

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.

2 participants