diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-10-12 14:31:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 06:31:32 -0700 |
commit | 024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7 (patch) | |
tree | 3539a51638b691de43a0d384745d155a51939a4e /src/clint.py | |
parent | 4f305fba14ec8c1919ed793b6e09e15ca54a8c1d (diff) | |
download | rneovim-024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7.tar.gz rneovim-024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7.tar.bz2 rneovim-024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7.zip |
fix(clint): disable whitespace/newline #20619
This rule is already mostly covered by uncrustify.
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/clint.py b/src/clint.py index 4829a50887..4cdcc46bb3 100755 --- a/src/clint.py +++ b/src/clint.py @@ -2547,23 +2547,10 @@ def CheckStyle(filename, clean_lines, linenum, error): # if(match(prev, " +for \\(")) complain = 0; # if(prevodd && match(prevprev, " +for \\(")) complain = 0; initial_spaces = 0 - cleansed_line = clean_lines.elided[linenum] while initial_spaces < len(line) and line[initial_spaces] == ' ': initial_spaces += 1 - if (cleansed_line.count(';') > 1 and - # for loops are allowed two ;'s (and may run over two lines). - cleansed_line.find('for') == -1 and - (GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or - GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and - # It's ok to have many commands in a switch case that fits in 1 line - not ((cleansed_line.find('case ') != -1 or - cleansed_line.find('default:') != -1) and - cleansed_line.find('break;') != -1)): - error(filename, linenum, 'whitespace/newline', 0, - 'More than one command on the same line') - # Some more style checks CheckBraces(filename, clean_lines, linenum, error) CheckSpacing(filename, clean_lines, linenum, error) |