Closed MrHen closed 9 years ago
I noticed that gradle uses checkstyle and I can set that up to be more aggressive about unifying code style. Right now there are apparently a bunch of differences between our IDEs. What do you want for:
{
if(blah && other) {
if(truthy) doSomething;
if(truthy) { doSomething; }
if
for
if (thisMinionPlayerSide == damagedPlayerSide) {
if(thisMinionPlayerSide == damagedPlayerSide) {
new DeathrattleDamageAll((byte) 2)
new DeathrattleDamageAll((byte)2)
this.foo
There are obviously lots of other settings but these are the ones I've seen matter recently.
My preferences are:
I'm not at all married to any of those preferences though. Happy to accommodate other patterns.
I noticed that gradle uses checkstyle and I can set that up to be more aggressive about unifying code style. Right now there are apparently a bunch of differences between our IDEs. What do you want for:
{
after a new block (e.g.,if(blah && other) {
). Common choices are same line or new line.if(truthy) doSomething;
beif(truthy) { doSomething; }
?if
,for
(e.g.if (thisMinionPlayerSide == damagedPlayerSide) {
versusif(thisMinionPlayerSide == damagedPlayerSide) {
new DeathrattleDamageAll((byte) 2)
intonew DeathrattleDamageAll((byte)2)
.)this.foo
?There are obviously lots of other settings but these are the ones I've seen matter recently.