MCPcopy Index your code
hub / github.com/cpplint/cpplint / IsErrorSuppressedByNolint

Function IsErrorSuppressedByNolint

cpplint.py:1191–1204  ·  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

1189
1190
1191def IsErrorSuppressedByNolint(category, linenum):
1192 """Returns true if the specified error category is suppressed on this line.
1193
1194 Consults the global error_suppressions map populated by
1195 ParseNolintSuppressions/ProcessGlobalSuppressions/ResetNolintSuppressions.
1196
1197 Args:
1198 category: str, the category of the error.
1199 linenum: int, the current line number.
1200 Returns:
1201 bool, True iff the error should be suppressed due to a NOLINT comment,
1202 block suppression or global suppression.
1203 """
1204 return _error_suppressions.IsSuppressed(category, linenum)
1205
1206
1207def _IsSourceExtension(s):

Callers 1

_ShouldPrintErrorFunction · 0.85

Calls 1

IsSuppressedMethod · 0.80

Tested by

no test coverage detected