mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Adapt tests
This commit is contained in:
@@ -9,7 +9,7 @@ Execute(The golangci-lint defaults should be correct):
|
|||||||
AssertLinter 'golangci-lint',
|
AssertLinter 'golangci-lint',
|
||||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||||
\ . ale#Escape('golangci-lint')
|
\ . ale#Escape('golangci-lint')
|
||||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||||
\ . ' --enable-all'
|
\ . ' --enable-all'
|
||||||
|
|
||||||
Execute(The golangci-lint callback should use a configured executable):
|
Execute(The golangci-lint callback should use a configured executable):
|
||||||
@@ -18,7 +18,7 @@ Execute(The golangci-lint callback should use a configured executable):
|
|||||||
AssertLinter 'something else',
|
AssertLinter 'something else',
|
||||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||||
\ . ale#Escape('something else')
|
\ . ale#Escape('something else')
|
||||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||||
\ . ' --enable-all'
|
\ . ' --enable-all'
|
||||||
|
|
||||||
Execute(The golangci-lint callback should use configured options):
|
Execute(The golangci-lint callback should use configured options):
|
||||||
@@ -27,7 +27,7 @@ Execute(The golangci-lint callback should use configured options):
|
|||||||
AssertLinter 'golangci-lint',
|
AssertLinter 'golangci-lint',
|
||||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||||
\ . ale#Escape('golangci-lint')
|
\ . ale#Escape('golangci-lint')
|
||||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||||
\ . ' --foobar'
|
\ . ' --foobar'
|
||||||
|
|
||||||
Execute(The golangci-lint `lint_package` option should use the correct command):
|
Execute(The golangci-lint `lint_package` option should use the correct command):
|
||||||
|
|||||||
Reference in New Issue
Block a user