mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-26 07:01:47 +00:00
10 lines
343 B
Python
10 lines
343 B
Python
from lint import Linter
|
|
|
|
class Puppet(Linter):
|
|
language = 'puppet'
|
|
cmd = ('puppet', 'parser', 'validate', '--color=false')
|
|
regex = r'^([^:]+:){2}\s*(?P<error>(Syntax error at|Could not match) \'?(?P<near>[^ ]*?)\'?.*) at [^:]*:(?P<line>\d+)$'
|
|
|
|
def run(self, cmd, code):
|
|
return self.tmpfile(cmd, code, suffix='.puppet')
|