mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
test/lsp: ensure linter name is set
All linters should have a name variable set in their dictionary, and code should be able to rely on that. Fix this test such that its example linter contains a name entry.
This commit is contained in:
@@ -17,6 +17,7 @@ Execute(Command formatting should be applied correctly for LSP linters):
|
|||||||
call ale#lsp_linter#StartLSP(
|
call ale#lsp_linter#StartLSP(
|
||||||
\ bufnr(''),
|
\ bufnr(''),
|
||||||
\ {
|
\ {
|
||||||
|
\ 'name': 'linter',
|
||||||
\ 'language_callback': {-> 'x'},
|
\ 'language_callback': {-> 'x'},
|
||||||
\ 'project_root_callback': {-> '/foo/bar'},
|
\ 'project_root_callback': {-> '/foo/bar'},
|
||||||
\ 'lsp': 'stdio',
|
\ 'lsp': 'stdio',
|
||||||
|
|||||||
Reference in New Issue
Block a user