mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add tests for updated Psalm plugin
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
Before:
|
||||
runtime ale_linters/php/psalm.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The php static analyzer handler should parse errors from psalm):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 1,
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'somewarning',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 11,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'someerror',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#php#psalm#Handle(347, [
|
||||
\ "/file:1:3:warning - somewarning",
|
||||
\ "/file:11:33:error - someerror",
|
||||
\ ])
|
||||
Reference in New Issue
Block a user