From a78cf3421999a38c6b53c7e73447872dbfb9e1a8 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Mon, 19 Feb 2018 11:00:29 +0100 Subject: [PATCH] Catch E302 error --- linter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linter.py b/linter.py index 68704e2..d5b8453 100644 --- a/linter.py +++ b/linter.py @@ -84,6 +84,9 @@ def reposition_match(self, line, col, m, virtual_view): length = len(match.group(1)) return (line, col, col + length) + if code == 'E302': + return line - 1, 0, 1 + if code == 'E303': match = re.match('too many blank lines \((\d+)', m.message.strip()) if match is not None: