This suggested edit was rejected. As it should be - rolfl here has the correct reason:
Whitespace "fixes" should be part of an answer, not an edit. Please do not fix code problems in the question.
Example:
public boolean newCombo(int c, int l){
if(grid[c][l].sample().isBasic()){
addPieceToCombo(c, l);
return true;
}
return false;
}
Was fixed to
public boolean newCombo(int c, int l) {
if (grid[c][l].sample().isBasic()) {
addPieceToCombo(c, l);
return true;
}
return false;
}
As it was in a class.
Editing the indentation here is what I wanted, so that's great. Adding whitespace between if
and (grid[c]...
is not what I wanted.
Also, for this specific question, if you take a look at the code on GitHub... you'll find the indentation in working order. So in this case, it's the result of bad question formatting, and telling the asker to indent their code is not going to help them one bit.
If you want to get rid of the growing pile of zombies you'll have to find a way to deal with messes like this - we can't just say "That's a code edit, you can't edit that", because when I see a massive pile of badly indented code, then I can't review the code! (Alternative solution: I post an answer on these kind of questions: "Your indentation is bad, you can fix it with auto-formatting in your IDE, shortcut for eclipse is this, shortcut for netbeans is that, if you have bad indentation people can't read your code.")
Is it possible that we can fix the indentation in these kind of questions and maybe get some quality reviewing in, or should we just keep saying "bad indentation, use auto-format"?