Merge pull request #1919 from saschagrunert/patch-1
Change PCRE escape to simple escape
This commit is contained in:
commit
f380d8508e
@ -18,7 +18,7 @@ function! ale_linters#go#golangci_lint#GetCommand(buffer) abort
|
||||
|
||||
return ale#path#BufferCdString(a:buffer)
|
||||
\ . '%e run '
|
||||
\ . ale#util#EscapePCRE(l:filename)
|
||||
\ . ale#Escape(l:filename)
|
||||
\ . ' ' . l:options
|
||||
endfunction
|
||||
|
||||
|
@ -9,7 +9,7 @@ Execute(The golangci-lint defaults should be correct):
|
||||
AssertLinter 'golangci-lint',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ale#Escape('golangci-lint')
|
||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --enable-all'
|
||||
|
||||
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',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ale#Escape('something else')
|
||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --enable-all'
|
||||
|
||||
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',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ale#Escape('golangci-lint')
|
||||
\ . ' run ' . ale#util#EscapePCRE(expand('%' . ':t'))
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --foobar'
|
||||
|
||||
Execute(The golangci-lint `lint_package` option should use the correct command):
|
||||
|
Loading…
x
Reference in New Issue
Block a user