mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add basic qmllint support (#1419)
* Add basic qmllint support * Use temp file, remove superfluous error code key, adjust author info * Add qmllint handler parse test
This commit is contained in:
19
test/handler/test_qmllint_handler.vader
Normal file
19
test/handler/test_qmllint_handler.vader
Normal file
@@ -0,0 +1,19 @@
|
||||
Before:
|
||||
runtime ale_linters/qml/qmllint.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The qmllint handler should parse error messages correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Expected token ''}'''
|
||||
\ }
|
||||
\ ],
|
||||
\ ale_linters#qml#qmllint#Handle(1, [
|
||||
\ '/tmp/ab34cd56/Test.qml:2 : Expected token ''}'''
|
||||
\ ])
|
||||
Reference in New Issue
Block a user