refactor: remove redundant NOLINT comments

This commit is contained in:
dundargoc
2024-01-01 15:56:00 +01:00
committed by dundargoc
parent f69658bc35
commit b49d4e18a6
19 changed files with 62 additions and 62 deletions

View File

@@ -3105,8 +3105,8 @@ int get_c_indent(void)
} else {
// Found first unterminated line on a row, may
// line up with this line, remember its indent
// 100 + // NOLINT(whitespace/tab)
// -> here; // NOLINT(whitespace/tab)
// 100 +
// -> here;
l = get_cursor_line_ptr();
amount = cur_amount;
@@ -3655,7 +3655,7 @@ static int find_match(int lookfor, linenr_T ourscope)
if (cin_iselse(look)) {
mightbeif = cin_skipcomment(look + 4);
if (!cin_isif(mightbeif)) {
elselevel++; // NOLINT(readability/braces)
elselevel++;
}
continue;
}
@@ -3670,7 +3670,7 @@ static int find_match(int lookfor, linenr_T ourscope)
// If it's an "if" decrement elselevel
look = cin_skipcomment(get_cursor_line_ptr());
if (cin_isif(look)) {
elselevel--; // NOLINT(readability/braces)
elselevel--;
// When looking for an "if" ignore "while"s that
// get in the way.
if (elselevel == 0 && lookfor == LOOKFOR_IF) {