Lines Matching refs:category
376 category = matched.group(1)
377 if category in (None, '(*)'): # => "suppress all"
380 if category.startswith('(') and category.endswith(')'):
381 category = category[1:-1]
382 if category in _ERROR_CATEGORIES:
383 _error_suppressions.setdefault(category, set()).add(linenum)
386 'Unknown NOLINT error category: %s' % category)
394 def IsErrorSuppressedByNolint(category, linenum): argument
406 return (linenum in _error_suppressions.get(category, set()) or
611 def IncrementErrorCount(self, category): argument
616 category = category.split('/')[0]
617 if category not in self.errors_by_category:
618 self.errors_by_category[category] = 0
619 self.errors_by_category[category] += 1
623 for category, count in self.errors_by_category.iteritems():
625 (category, count))
832 def _ShouldPrintError(category, confidence, linenum): argument
838 if IsErrorSuppressedByNolint(category, linenum):
846 if category.startswith(one_filter[1:]):
849 if category.startswith(one_filter[1:]):
859 def Error(filename, linenum, category, confidence, message): argument
881 if _ShouldPrintError(category, confidence, linenum):
882 _cpplint_state.IncrementErrorCount(category)
885 filename, linenum, message, category, confidence))
888 filename, linenum, message, category, confidence))
891 filename, linenum, message, category, confidence))