From d3b75fc4f6b446594d0802bd926c15a09e444ecf Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Fri, 15 Jun 2012 14:53:22 +0200 Subject: [PATCH] Change the test so a tab character before a braces is ok --- telldus-core/tests/cpplint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telldus-core/tests/cpplint.py b/telldus-core/tests/cpplint.py index 526b9556..19a37be5 100755 --- a/telldus-core/tests/cpplint.py +++ b/telldus-core/tests/cpplint.py @@ -1883,9 +1883,9 @@ def CheckSpacing(filename, clean_lines, linenum, error): # an initializer list, for instance), you should have spaces before your # braces. And since you should never have braces at the beginning of a line, # this is an easy test. - if Search(r'[^ ({]{', line): + if Search(r'[^ \t({]{', line): # The check for tab was added by Telldus error(filename, linenum, 'whitespace/braces', 5, - 'Missing space before {') + 'Missing whitespace before {') # Make sure '} else {' has spaces. if Search(r'}else', line):