Pattern: Visually indented line with same indent as next logical line
Issue: -
A visual indented line has the same indentation as the next logical line. This can make it hard to read.
In this example the second line is indented at the same level as the body of the if
statement.
if (row < 0 or module_count <= row or
col < 0 or module_count <= col):
raise Exception("%s,%s - %s" % (row, col, self.moduleCount))
if (row < 0 or module_count <= row or
col < 0 or module_count <= col):
raise Exception("%s,%s - %s" % (row, col, self.moduleCount))