Skip to content

Commit

Permalink
Catch E302 error
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Feb 19, 2018
1 parent af3dd93 commit a78cf34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a78cf34

Please sign in to comment.