--- a/incoming.py Sun Jun 19 14:07:11 2016 +0800
+++ b/incoming.py Sun Jun 19 14:16:56 2016 +0800
- m = re.match(r'^(.+):(\d+):\d+: ', line)
- # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
- if re.match(r'^E9\d{2}', rest) is not None:
- elif re.match(r'^[EWFCN]\d{3}', rest) is not None:
- elif re.match(r'^\[error\]', rest) is not None:
- elif re.match(r'^\[warning\]', rest) is not None:
- elif re.match(r'^\(E\d{3}\)', rest) is not None:
- elif re.match(r'^\(W\d{3}\)', rest) is not None:
if line.startswith(meta_prefix):
+ elif state == 'checks':
+ m = re.match(r'^(.+):(\d+):\d+: ', line)
+ # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
+ if re.match(r'^E9\d{2}', rest) is not None:
+ elif re.match(r'^[EWFCN]\d{3}', rest) is not None:
+ elif re.match(r'^\[error\]', rest) is not None:
+ elif re.match(r'^\[warning\]', rest) is not None:
+ elif re.match(r'^\(E\d{3}\)', rest) is not None:
+ elif re.match(r'^\(W\d{3}\)', rest) is not None:
result.append((cls, line))