aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-09-03 12:00:00 +0200
committerGitHub <noreply@github.com>2022-09-03 12:00:00 +0200
commitea611c7122470af0e03f4b0a5ae99c0878da2712 (patch)
treeb56ecd8c2b5913266a8fca72ffae36a01946f5b7
parent5296e9407db5b7ace29e2822e20d70d8e621fc8b (diff)
downloadrneovim-ea611c7122470af0e03f4b0a5ae99c0878da2712.tar.gz
rneovim-ea611c7122470af0e03f4b0a5ae99c0878da2712.tar.bz2
rneovim-ea611c7122470af0e03f4b0a5ae99c0878da2712.zip
ci(clint): remove "Inner expression indentation should be 4" rule (#20047)
It completely breaks down in shada.c and is generally useless.
-rwxr-xr-xsrc/clint.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/clint.py b/src/clint.py
index 28f6031a57..0556f53372 100755
--- a/src/clint.py
+++ b/src/clint.py
@@ -1941,13 +1941,6 @@ def CheckExpressionAlignment(filename, clean_lines, linenum, error, startpos=0):
error(filename, linenum, 'whitespace/indent', 2,
'End of the inner expression should have '
'the same indent as start')
- else:
- if (pos != depth_line_starts[depth][0] + 4
- and not (depth_line_starts[depth][1] == '{'
- and pos == depth_line_starts[depth][0] + 2)):
- if depth not in ignore_error_levels:
- error(filename, linenum, 'whitespace/indent', 2,
- 'Inner expression indentation should be 4')
else:
if (pos != level_starts[depth][0] + 1
+ (level_starts[depth][2] == '{')):