Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Sep 18, 2017
1 parent 59cf748 commit 5652385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:
- pip install pep257
# command to run tests
script:
- flake8 . --max-line-length=160
- flake8 . --max-line-length=160 --ignore=D211
- pep257 . --ignore=D202,D211
notifications:
email: false
21 changes: 8 additions & 13 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,20 @@
# License: MIT
#


"""This module exports the Iscc plugin class."""

from SublimeLinter.lint import Linter, util
from sys import platform


class Iscc(Linter):

"""Provides an interface to the ISCC executable."""

if platform == 'win32':
cmd = ('ISCC.exe', '/Q', '/O-', '@')
syntax = 'inno setup'
regex = (
r'^Error on line (?P<line>\d+) in (?P<file>.*\.iss): (?P<message>.+)$'
)
multiline = True
error_stream = util.STREAM_STDERR
line_col_base = (1, 1)
else
print("This linter is only available on Windows")
cmd = ('ISCC.exe', '/Q', '/O-', '@')
syntax = 'inno setup'
regex = (
r'^Error on line (?P<line>\d+) in (?P<file>.*\.iss): (?P<message>.+)$'
)
multiline = True
error_stream = util.STREAM_STDERR
line_col_base = (1, 1)

0 comments on commit 5652385

Please sign in to comment.