Skip to content

Commit 0f11849

Browse files
authored
Don't error on unknown NOLINT categories (#253)
1 parent c8a209e commit 0f11849

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

wpiformat/wpiformat/cpplint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ def ParseNolintSuppressions(filename, raw_line, linenum, error):
312312
category = category[1:-1]
313313
if category in _ERROR_CATEGORIES:
314314
_error_suppressions.setdefault(category, set()).add(suppressed_line)
315-
else:
316-
error(filename, linenum, 'readability/nolint', 5,
317-
'Unknown NOLINT error category: %s' % category)
318315

319316

320317
def ProcessGlobalSuppresions(lines):

0 commit comments

Comments
 (0)