2017-11-15 12:21:17 -05:00
|
|
|
Before:
|
2017-03-05 15:34:58 -05:00
|
|
|
runtime ale_linters/nix/nix.vim
|
|
|
|
|
2017-11-15 12:21:17 -05:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The nix handler should parse nix-instantiate error messages correctly):
|
2017-03-05 15:34:58 -05:00
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 23,
|
|
|
|
\ 'col': 14,
|
|
|
|
\ 'text': 'error: syntax error, unexpected IN',
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'col': 12,
|
|
|
|
\ 'text': 'error: syntax error, unexpected ''='', expecting '';''',
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#nix#nix#Handle(47, [
|
|
|
|
\ 'This line should be ignored',
|
|
|
|
\ 'error: syntax error, unexpected IN, at /path/to/filename.nix:23:14',
|
|
|
|
\ 'error: syntax error, unexpected ''='', expecting '';'', at /path/to/filename.nix:3:12',
|
|
|
|
\ ])
|