- # Now all the regex checks.
- for (check_re, msg) in self.re_checks:
+ # Now all the stylistic warnings regex checks.
+ for (check_re, msg) in self.warning_checks:
+ if check_re.search (line):
+ self.warning (msg)
+
+ # Now all the stylistic error regex checks.
+ for (check_re, msg) in self.error_checks: