mkrause / gx

Rx bindings for Google Drive Realtime API (Gx)
MIT License
1 stars 1 forks source link

Pick a consistent coding style #32

Closed yholkamp closed 11 years ago

yholkamp commented 11 years ago

I've noticed that the coding style isn't very consistent throughout the codebase right now. For instance the location of the opening bracket is highly volatile.

I suggest we pick a default style, reformat all code in one monster commit and then stick to this format so we can keep the coding style a bit more consistent. We could even go as far as to commit the code format to the repository and just use the IDE's format code ability - this has the additional perk that we can get rid of the unused imports that are scattered around the place as well.

rdebokx commented 11 years ago

:+1:

mkrause commented 11 years ago

My vote is for K&R style. So:

class Foo
{
    public void bar()
    {
        if (true) {
            System.out.println("Hello");
        }
    }
}
yholkamp commented 11 years ago

:+1:

erikvdv1 commented 11 years ago

Okay good point, I will change the configuration of my IDE accordingly.