neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7
parent 4f305fba14ec8c1919ed793b6e09e15ca54a8c1d
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Wed, 12 Oct 2022 14:31:32 +0100

fix(clint): disable whitespace/newline #20619

This rule is already mostly covered by uncrustify.
Diffstat:
Msrc/clint.py | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git 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)