Skip to content

Instantly share code, notes, and snippets.

@muellerberndt
Last active February 25, 2019 06:23
Show Gist options
  • Select an option

  • Save muellerberndt/09d19bd031a54b979e1242d853f01162 to your computer and use it in GitHub Desktop.

Select an option

Save muellerberndt/09d19bd031a54b979e1242d853f01162 to your computer and use it in GitHub Desktop.
SublimeLinter for MythX API Example
from SublimeLinter.lint import Linter # or NodeLinter, PythonLinter, ComposerLinter, RubyLinter
class __class__(Linter):
cmd = ('sabre')
regex = (
r'\s*(?P<line>\d+):(?P<col>\d+)\s*'
r'((?P<error>error)|(?P<warning>warning))\s*'
r'(?P<message>.+)'
)
tempfile_suffix = "~"
multiline = False
defaults = {
'selector': 'source.solidity'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment