diff options
author | Julian Orth <ju.orth@gmail.com> | 2014-03-05 21:48:41 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-27 14:03:35 -0300 |
commit | 95659707a823b574abbe747f7e6eac3c3eaf601a (patch) | |
tree | b8095f07b58f6ea576455f28688e4d48045e31b1 | |
parent | ef23bbe6eef9a64fa6e513cc7536d931c929d907 (diff) | |
download | rneovim-95659707a823b574abbe747f7e6eac3c3eaf601a.tar.gz rneovim-95659707a823b574abbe747f7e6eac3c3eaf601a.tar.bz2 rneovim-95659707a823b574abbe747f7e6eac3c3eaf601a.zip |
remove C++ stuff from CheckSpacing
-rwxr-xr-x | clint.py | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -2644,11 +2644,6 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): 'Redundant blank line at the end of a code block ' 'should be deleted.') - matched = Match(r'\s*(public|protected|private):', prev_line) - if matched: - error(filename, linenum, 'whitespace/blank_line', 3, - 'Do not leave a blank line after "%s:"' % matched.group(1)) - # Next, we complain if there's a comment too near the text commentpos = line.find('//') if commentpos != -1: @@ -2870,7 +2865,7 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): # You shouldn't have spaces before your brackets, except maybe after # 'delete []' or 'new char * []'. - if Search(r'\w\s+\[', line) and not Search(r'delete\s+\[', line): + if Search(r'\w\s+\[', line): error(filename, linenum, 'whitespace/braces', 5, 'Extra space before [') @@ -2890,13 +2885,6 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): 'Extra space before last semicolon. If this should be an empty ' 'statement, use {} instead.') - # In range-based for, we wanted spaces before and after the colon, but - # not around "::" tokens that might appear. - if (Search('for *\(.*[^:]:[^: ]', line) or - Search('for *\(.*[^: ]:[^:]', line)): - error(filename, linenum, 'whitespace/forcolon', 2, - 'Missing space around colon in range-based for loop') - def GetPreviousNonBlankLine(clean_lines, linenum): """Return the most recent non-blank line and its line number. |