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)
| 1189 | |
| 1190 | |
| 1191 | def 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 | |
| 1207 | def _IsSourceExtension(s): |
no test coverage detected