Skip to content

Commit 8567a0a

Browse files
authored
Merge pull request #3 from ShuosiWang/fix-cls-syntax
fix: slove deprecated 'cls.syntax' problem
2 parents 55e77ca + 5e6f37e commit 8567a0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

linter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class Puppet(Linter):
1717

1818
"""Provides an interface to puppet."""
1919

20-
syntax = 'puppet'
20+
defaults = {
21+
'selector': 'source.puppet'
22+
}
2123
cmd = ('puppet', 'parser', 'validate', '--color=false')
2224
regex = r'^Error:.+?(?P<message>Syntax error at \'(?P<near>.+?)\'?(?P<line>\d+):?(?P<col>\d+))'
2325
error_stream = util.STREAM_STDERR

0 commit comments

Comments
 (0)