Add jq linter for JSON diagnostics

This commit is contained in:
jD91mZM2
2021-01-31 13:01:03 +01:00
parent 2d07fa0cc2
commit 4894c760c2
2 changed files with 49 additions and 0 deletions

15
test/test_jq_linter.vader Normal file
View File

@@ -0,0 +1,15 @@
Before:
runtime ale_linters/json/jq.vim
Execute (Should parse error correctly):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'col': 9,
\ 'text': 'Expected another array element',
\ }
\ ],
\ ale_linters#json#jq#Handle(0, [
\ 'parse error: Expected another array element at line 1, column 9'
\ ])