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)
| 1229 | |
| 1230 | |
| 1231 | def 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 | |
| 1247 | def _IsSourceExtension(s): |
no test coverage detected
searching dependent graphs…