mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-21 19:51:17 +08:00
Handling for puppet parser error at end of input.
Add handling for `Syntax error at end of input` which doesn't give a line or column. Fixes #2656
This commit is contained in:
@@ -63,3 +63,15 @@ Execute(The puppet handler should correctly parse errors that are reported befor
|
||||
\ ale_linters#puppet#puppet#Handle(255, [
|
||||
\ "Error: Illegal attempt to assign to 'a Name'. Not an assignable reference (file: /tmp/modules/waffles/manifests/syrup.pp, line: 5, column: 11)",
|
||||
\ ])
|
||||
Execute(The puppet handler should parse lines when end of input is the location):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 0,
|
||||
\ 'col': 0,
|
||||
\ 'text': "Syntax error at end of input"
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#puppet#puppet#Handle(255, [
|
||||
\ "Error: Could not parse for environment production: Syntax error at end of input (file: /tmp//modules/test/manifests/init.pp)",
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user