mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 13:34:46 +08:00
fix testcase
This commit is contained in:
@@ -7,7 +7,7 @@ After:
|
||||
|
||||
Execute(The staticcheck callback should return the right defaults):
|
||||
AssertLinter 'staticcheck',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ ale#path#CdString(ale#Escape(expand('%:p:h')))
|
||||
\ . 'staticcheck '
|
||||
\ . ale#Escape(expand('%' . ':t'))
|
||||
|
||||
@@ -15,7 +15,7 @@ Execute(The staticcheck callback should use configured options):
|
||||
let b:ale_go_staticcheck_options = '-test'
|
||||
|
||||
AssertLinter 'staticcheck',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ ale#path#CdString(ale#Escape(expand('%:p:h')))
|
||||
\ . 'staticcheck '
|
||||
\ . '-test ' . ale#Escape(expand('%' . ':t'))
|
||||
|
||||
@@ -23,4 +23,4 @@ Execute(The staticcheck `lint_package` option should use the correct command):
|
||||
let b:ale_go_staticcheck_lint_package = 1
|
||||
|
||||
AssertLinter 'staticcheck',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && staticcheck .',
|
||||
\ ale#path#CdString(ale#Escape(expand('%:p:h'))) . 'staticcheck .',
|
||||
|
||||
Reference in New Issue
Block a user