Skip to content

Commit 2fce105

Browse files
committed
Require 4 space indentation
1 parent b3d13d2 commit 2fce105

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpplint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6119,9 +6119,9 @@ def CheckIndentation(filename, clean_lines, linenum, nesting_state: NestingState
61196119
match = Match(r'^(\s*)[^\n]*$', line)
61206120
if match:
61216121
num_indents = len(match[1])
6122-
if num_indents != expected_indentation * 2:
6122+
if num_indents != expected_indentation * 4:
61236123
error(filename, linenum, 'whitespace/num_indents', 4,
6124-
"Expected an indentation of %d spaces. Found %d" % (expected_indentation * 2, num_indents))
6124+
"Expected an indentation of %d spaces. Found %d" % (expected_indentation * 4, num_indents))
61256125

61266126

61276127
def CheckNotMoreThanOneStatementPerLine(filename, clean_lines, linenum, error):

0 commit comments

Comments
 (0)