aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-12-08 14:10:44 +0300
committerZyX <kp-pav@yandex.ru>2015-12-09 18:37:13 +0300
commit4c0ac1ca26247b35109f399e4ac5f0632df65e10 (patch)
tree8dd946ee157be9b1d85dea657f9067b3d50e52f0 /clint.py
parent86c0bd14ec945da2c9978f8a1cfb783e0217f09c (diff)
downloadrneovim-4c0ac1ca26247b35109f399e4ac5f0632df65e10.tar.gz
rneovim-4c0ac1ca26247b35109f399e4ac5f0632df65e10.tar.bz2
rneovim-4c0ac1ca26247b35109f399e4ac5f0632df65e10.zip
clint: Do not special-case for() semicolons
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/clint.py b/clint.py
index db22905026..9506a7fa3f 100755
--- a/clint.py
+++ b/clint.py
@@ -2311,8 +2311,6 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
'Extra space before [')
# You shouldn't have a space before a semicolon at the end of the line.
- # There's a special case for "for" since the style guide allows space before
- # the semicolon there.
if Search(r':\s*;\s*$', line):
error(filename, linenum, 'whitespace/semicolon', 5,
'Semicolon defining empty statement. Use {} instead.')
@@ -2320,8 +2318,7 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
error(filename, linenum, 'whitespace/semicolon', 5,
'Line contains only semicolon. If this should be an empty'
' statement, use {} instead.')
- elif (Search(r'\s+;\s*$', line) and
- not Search(r'\bfor\b', line)):
+ elif Search(r'\s+;\s*$', line):
error(filename, linenum, 'whitespace/semicolon', 5,
'Extra space before last semicolon. If this should be an empty '
'statement, use {} instead.')