Home | History | Annotate | Download | only in style

Lines Matching refs:category

31   __call__(self, line_number, category, confidence, message):
41 category: The name of the category of the error, for example
86 # errors per category passed to this instance.
108 def _add_reportable_error(self, category):
109 """Increment the error count and return the new category total."""
112 # Increment the category total.
113 if not category in self._category_totals:
114 self._category_totals[category] = 1
116 self._category_totals[category] += 1
118 return self._category_totals[category]
120 def _max_reports(self, category):
122 if not category in self._configuration.max_reports_per_category:
124 return self._configuration.max_reports_per_category[category]
134 def __call__(self, line_number, category, confidence, message):
143 if not self._configuration.is_reportable(category=category,
148 category_total = self._add_reportable_error(category)
150 max_reports = self._max_reports(category)
156 self._configuration.write_style_error(category=category,
163 "for this file.\n" % category)