mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-30 19:36:55 +08:00
#2132 - Replace all uses of foo_callback with foo
This commit is contained in:
@@ -26,7 +26,7 @@ endfunction
|
||||
call ale#linter#Define('sh', {
|
||||
\ 'name': 'language_server',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable_callback': 'ale_linters#sh#language_server#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#sh#language_server#GetCommand',
|
||||
\ 'project_root_callback': 'ale_linters#sh#language_server#GetProjectRoot',
|
||||
\ 'executable': function('ale_linters#sh#language_server#GetExecutable'),
|
||||
\ 'command': function('ale_linters#sh#language_server#GetCommand'),
|
||||
\ 'project_root': function('ale_linters#sh#language_server#GetProjectRoot'),
|
||||
\})
|
||||
|
||||
@@ -51,7 +51,7 @@ endfunction
|
||||
call ale#linter#Define('sh', {
|
||||
\ 'name': 'shell',
|
||||
\ 'output_stream': 'stderr',
|
||||
\ 'executable_callback': 'ale_linters#sh#shell#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#sh#shell#GetCommand',
|
||||
\ 'executable': function('ale_linters#sh#shell#GetExecutable'),
|
||||
\ 'command': function('ale_linters#sh#shell#GetCommand'),
|
||||
\ 'callback': 'ale_linters#sh#shell#Handle',
|
||||
\})
|
||||
|
||||
@@ -108,7 +108,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('sh', {
|
||||
\ 'name': 'shellcheck',
|
||||
\ 'executable_callback': 'ale_linters#sh#shellcheck#GetExecutable',
|
||||
\ 'executable': function('ale_linters#sh#shellcheck#GetExecutable'),
|
||||
\ 'command_chain': [
|
||||
\ {'callback': 'ale_linters#sh#shellcheck#VersionCheck'},
|
||||
\ {'callback': 'ale_linters#sh#shellcheck#GetCommand'},
|
||||
|
||||
Reference in New Issue
Block a user