Lines Matching refs:category

597     category = matched.group(2)
598 if category in (None, '(*)'): # => "suppress all"
601 if category.startswith('(') and category.endswith(')'):
602 category = category[1:-1]
603 if category in _ERROR_CATEGORIES:
604 _error_suppressions.setdefault(category, set()).add(suppressed_line)
605 elif category not in _LEGACY_ERROR_CATEGORIES:
607 'Unknown NOLINT error category: %s' % category)
621 for category in _DEFAULT_C_SUPPRESSED_CATEGORIES:
622 _global_error_suppressions[category] = True
624 for category in _DEFAULT_KERNEL_SUPPRESSED_CATEGORIES:
625 _global_error_suppressions[category] = True
634 def IsErrorSuppressedByNolint(category, linenum): argument
647 return (_global_error_suppressions.get(category, False) or
648 linenum in _error_suppressions.get(category, set()) or
938 def IncrementErrorCount(self, category): argument
943 category = category.split('/')[0]
944 if category not in self.errors_by_category:
945 self.errors_by_category[category] = 0
946 self.errors_by_category[category] += 1
950 for category, count in self.errors_by_category.iteritems():
952 (category, count))
1183 def _ShouldPrintError(category, confidence, linenum): argument
1189 if IsErrorSuppressedByNolint(category, linenum):
1198 if category.startswith(one_filter[1:]):
1201 if category.startswith(one_filter[1:]):
1211 def Error(filename, linenum, category, confidence, message): argument
1233 if _ShouldPrintError(category, confidence, linenum):
1234 _cpplint_state.IncrementErrorCount(category)
1237 filename, linenum, category, message, confidence))
1240 filename, linenum, message, category, confidence))
1243 filename, linenum, message, category, confidence))