Community
Participate
Working Groups
It is impossible to configure the Eclipse Java code formatter in such a way that it formats empty for loops according to the Google style. The objective is that formatter produces the following: {code} for (int i = 0; i != 10; i++) { } for (; ; ) { } {code} It is impossible to configure this, Eclipse forcibly formats empty for loops like this: {code} for (int i = 0; i != 10; i++) { } for (;;) { // Checkstyle violation. } {code} The two relevant Checkstyle checks are EmptyForIteratorPad and EmptyForInitializerPad. The problem is that empty for statements are forcibly treated specially by Eclipse. There should be an option for that. I'm prepared to try and fix this myself, and I'll try, but I'll have to figure out how to contribute to the right project.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.