MCPcopy Index your code
hub / github.com/nodejs/node / IsErrorSuppressedByNolint

Function IsErrorSuppressedByNolint

tools/cpplint.py:1231–1244  ·  view source on GitHub ↗

Returns true if the specified error category is suppressed on this line. Consults the global error_suppressions map populated by ParseNolintSuppressions/ProcessGlobalSuppressions/ResetNolintSuppressions. Args: category: str, the category of the error. linenum: int, the curr

(category, linenum)

Source from the content-addressed store, hash-verified

1229
1230
1231def IsErrorSuppressedByNolint(category, linenum):
1232 """Returns true if the specified error category is suppressed on this line.
1233
1234 Consults the global error_suppressions map populated by
1235 ParseNolintSuppressions/ProcessGlobalSuppressions/ResetNolintSuppressions.
1236
1237 Args:
1238 category: str, the category of the error.
1239 linenum: int, the current line number.
1240 Returns:
1241 bool, True iff the error should be suppressed due to a NOLINT comment,
1242 block suppression or global suppression.
1243 """
1244 return _error_suppressions.IsSuppressed(category, linenum)
1245
1246
1247def _IsSourceExtension(s):

Callers 1

_ShouldPrintErrorFunction · 0.85

Calls 1

IsSuppressedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…