mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-07 18:31:04 +08:00
Add jq linter for JSON diagnostics
This commit is contained in:
15
test/test_jq_linter.vader
Normal file
15
test/test_jq_linter.vader
Normal 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'
|
||||
\ ])
|
||||
Reference in New Issue
Block a user