mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#2132 - Replace all uses of foo_callback with foo
This commit is contained in:
@@ -62,7 +62,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'bandit',
|
||||
\ 'executable_callback': 'ale_linters#python#bandit#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#bandit#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#bandit#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#bandit#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#bandit#Handle',
|
||||
\})
|
||||
|
||||
@@ -143,7 +143,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'flake8',
|
||||
\ 'executable_callback': 'ale_linters#python#flake8#GetExecutable',
|
||||
\ 'executable': function('ale_linters#python#flake8#GetExecutable'),
|
||||
\ 'command_chain': [
|
||||
\ {'callback': 'ale_linters#python#flake8#VersionCheck'},
|
||||
\ {'callback': 'ale_linters#python#flake8#GetCommand', 'output_stream': 'both'},
|
||||
|
||||
@@ -75,7 +75,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'mypy',
|
||||
\ 'executable_callback': 'ale_linters#python#mypy#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#mypy#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#mypy#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#mypy#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#mypy#Handle',
|
||||
\})
|
||||
|
||||
@@ -93,8 +93,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'prospector',
|
||||
\ 'executable_callback': 'ale_linters#python#prospector#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#prospector#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#prospector#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#prospector#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#prospector#Handle',
|
||||
\ 'lint_file': 1,
|
||||
\})
|
||||
|
||||
@@ -69,7 +69,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pycodestyle',
|
||||
\ 'executable_callback': 'ale_linters#python#pycodestyle#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pycodestyle#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#pycodestyle#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pycodestyle#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#pycodestyle#Handle',
|
||||
\})
|
||||
|
||||
@@ -67,7 +67,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pydocstyle',
|
||||
\ 'executable_callback': 'ale_linters#python#pydocstyle#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pydocstyle#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#pydocstyle#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pydocstyle#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#pydocstyle#Handle',
|
||||
\})
|
||||
|
||||
@@ -43,8 +43,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pyflakes',
|
||||
\ 'executable_callback': 'ale_linters#python#pyflakes#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pyflakes#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#pyflakes#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pyflakes#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#pyflakes#Handle',
|
||||
\ 'output_stream': 'both',
|
||||
\})
|
||||
|
||||
@@ -85,8 +85,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pylama',
|
||||
\ 'executable_callback': 'ale_linters#python#pylama#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pylama#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#pylama#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pylama#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#pylama#Handle',
|
||||
\ 'lint_file': 1,
|
||||
\})
|
||||
|
||||
@@ -78,8 +78,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pylint',
|
||||
\ 'executable_callback': 'ale_linters#python#pylint#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pylint#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#pylint#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pylint#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#pylint#Handle',
|
||||
\ 'lint_file': 1,
|
||||
\})
|
||||
|
||||
@@ -28,9 +28,9 @@ endfunction
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pyls',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable_callback': 'ale_linters#python#pyls#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pyls#GetCommand',
|
||||
\ 'project_root_callback': 'ale#python#FindProjectRoot',
|
||||
\ 'executable': function('ale_linters#python#pyls#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pyls#GetCommand'),
|
||||
\ 'project_root': function('ale#python#FindProjectRoot'),
|
||||
\ 'completion_filter': 'ale#completion#python#CompletionItemFilter',
|
||||
\ 'lsp_config_callback': ale#VarFunc('python_pyls_config'),
|
||||
\ 'lsp_config': {b -> ale#Var(b, 'python_pyls_config')},
|
||||
\})
|
||||
|
||||
@@ -27,8 +27,8 @@ endfunction
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'pyre',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable_callback': 'ale_linters#python#pyre#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#pyre#GetCommand',
|
||||
\ 'project_root_callback': 'ale#python#FindProjectRoot',
|
||||
\ 'executable': function('ale_linters#python#pyre#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#pyre#GetCommand'),
|
||||
\ 'project_root': function('ale#python#FindProjectRoot'),
|
||||
\ 'completion_filter': 'ale#completion#python#CompletionItemFilter',
|
||||
\})
|
||||
|
||||
@@ -73,8 +73,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
\ 'name': 'vulture',
|
||||
\ 'executable_callback': 'ale_linters#python#vulture#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#python#vulture#GetCommand',
|
||||
\ 'executable': function('ale_linters#python#vulture#GetExecutable'),
|
||||
\ 'command': function('ale_linters#python#vulture#GetCommand'),
|
||||
\ 'callback': 'ale_linters#python#vulture#Handle',
|
||||
\ 'lint_file': 1,
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user