Lines Matching refs:category
380 category = matched.group(1)
381 if category in (None, '(*)'): # => "suppress all"
384 if category.startswith('(') and category.endswith(')'):
385 category = category[1:-1]
386 if category in _ERROR_CATEGORIES:
387 _error_suppressions.setdefault(category, set()).add(linenum)
390 'Unknown NOLINT error category: %s' % category)
398 def IsErrorSuppressedByNolint(category, linenum): argument
410 return (linenum in _error_suppressions.get(category, set()) or
626 def IncrementErrorCount(self, category): argument
631 category = category.split('/')[0]
632 if category not in self.errors_by_category:
633 self.errors_by_category[category] = 0
634 self.errors_by_category[category] += 1
638 for category, count in self.errors_by_category.iteritems():
640 (category, count))
858 def _ShouldPrintError(category, confidence, linenum): argument
864 if IsErrorSuppressedByNolint(category, linenum):
872 if category.startswith(one_filter[1:]):
875 if category.startswith(one_filter[1:]):
885 def Error(filename, linenum, category, confidence, message): argument
907 if _ShouldPrintError(category, confidence, linenum):
908 _cpplint_state.IncrementErrorCount(category)
911 filename, linenum, message, category, confidence))
914 filename, linenum, message, category, confidence))
917 filename, linenum, message, category, confidence))