Skip to content

Commit

Permalink
Update regex to correctly match puppet parser validate output.
Browse files Browse the repository at this point in the history
  • Loading branch information
xraystyle committed May 13, 2019
1 parent 55e77ca commit be123fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ class Puppet(Linter):

syntax = 'puppet'
cmd = ('puppet', 'parser', 'validate', '--color=false')
regex = r'^Error:.+?(?P<message>Syntax error at \'(?P<near>.+?)\'?(?P<line>\d+):?(?P<col>\d+))'
regex = r'^Error:.+?(?P<message>Syntax error at \'(?P<near>.*?)\' \(line: (?P<line>\d+), column: (?P<col>\d+)\))'
error_stream = util.STREAM_STDERR

0 comments on commit be123fe

Please sign in to comment.