diff options
Diffstat (limited to 'ale_linters')
30 files changed, 30 insertions, 30 deletions
diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim index 9f683190..a16dfde2 100644 --- a/ale_linters/css/stylelint.vim +++ b/ale_linters/css/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('css_stylelint_executable', 'stylelint') call ale#Set('css_stylelint_options', '') -call ale#Set('css_stylelint_use_global', 0) +call ale#Set('css_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#css#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'css_stylelint', [ diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim index 3783b5e3..a665cef4 100644 --- a/ale_linters/elm/make.vim +++ b/ale_linters/elm/make.vim @@ -2,7 +2,7 @@ " Description: Elm linting in Ale. Closely follows the Syntastic checker in https://github.com/ElmCast/elm-vim. call ale#Set('elm_make_executable', 'elm-make') -call ale#Set('elm_make_use_global', 0) +call ale#Set('elm_make_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#elm#make#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'elm_make', [ diff --git a/ale_linters/gitcommit/gitlint.vim b/ale_linters/gitcommit/gitlint.vim index 49aeda7c..0b4ca0fc 100644 --- a/ale_linters/gitcommit/gitlint.vim +++ b/ale_linters/gitcommit/gitlint.vim @@ -4,7 +4,7 @@ let g:ale_gitcommit_gitlint_executable = \ get(g:, 'ale_gitcommit_gitlint_executable', 'gitlint') let g:ale_gitcommit_gitlint_options = get(g:, 'ale_gitcommit_gitlint_options', '') -let g:ale_gitcommit_gitlint_use_global = get(g:, 'ale_gitcommit_gitlint_use_global', 0) +let g:ale_gitcommit_gitlint_use_global = get(g:, 'ale_gitcommit_gitlint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#gitcommit#gitlint#GetExecutable(buffer) abort diff --git a/ale_linters/handlebars/embertemplatelint.vim b/ale_linters/handlebars/embertemplatelint.vim index 68ea7155..162a033c 100644 --- a/ale_linters/handlebars/embertemplatelint.vim +++ b/ale_linters/handlebars/embertemplatelint.vim @@ -2,7 +2,7 @@ " Description: Ember-template-lint for checking Handlebars files call ale#Set('handlebars_embertemplatelint_executable', 'ember-template-lint') -call ale#Set('handlebars_embertemplatelint_use_global', 0) +call ale#Set('handlebars_embertemplatelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#handlebars#embertemplatelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'handlebars_embertemplatelint', [ diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 88a83f1d..caa15bbb 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -3,7 +3,7 @@ call ale#Set('html_htmlhint_options', '') call ale#Set('html_htmlhint_executable', 'htmlhint') -call ale#Set('html_htmlhint_use_global', 0) +call ale#Set('html_htmlhint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#html#htmlhint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'html_htmlhint', [ diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim index 643ea190..d2b362b5 100755 --- a/ale_linters/javascript/flow.vim +++ b/ale_linters/javascript/flow.vim @@ -4,7 +4,7 @@ call ale#Set('javascript_flow_executable', 'flow') call ale#Set('javascript_flow_use_home_config', 0) -call ale#Set('javascript_flow_use_global', 0) +call ale#Set('javascript_flow_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#flow#GetExecutable(buffer) abort let l:flow_config = ale#path#FindNearestFile(a:buffer, '.flowconfig') diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim index bcf3ee3a..60044037 100644 --- a/ale_linters/javascript/jscs.vim +++ b/ale_linters/javascript/jscs.vim @@ -2,7 +2,7 @@ " Description: jscs for JavaScript files call ale#Set('javascript_jscs_executable', 'jscs') -call ale#Set('javascript_jscs_use_global', 0) +call ale#Set('javascript_jscs_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#jscs#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'javascript_jscs', [ diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index 93b16a8f..2e9bb9fd 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -2,7 +2,7 @@ " Description: JSHint for Javascript files call ale#Set('javascript_jshint_executable', 'jshint') -call ale#Set('javascript_jshint_use_global', 0) +call ale#Set('javascript_jshint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#jshint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'javascript_jshint', [ diff --git a/ale_linters/javascript/standard.vim b/ale_linters/javascript/standard.vim index aa6a3a72..f16b837a 100644 --- a/ale_linters/javascript/standard.vim +++ b/ale_linters/javascript/standard.vim @@ -2,7 +2,7 @@ " Description: standardjs for JavaScript files call ale#Set('javascript_standard_executable', 'standard') -call ale#Set('javascript_standard_use_global', 0) +call ale#Set('javascript_standard_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_standard_options', '') function! ale_linters#javascript#standard#GetExecutable(buffer) abort diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim index cf305eb4..bc8657ed 100644 --- a/ale_linters/javascript/xo.vim +++ b/ale_linters/javascript/xo.vim @@ -2,7 +2,7 @@ " Description: xo for JavaScript files call ale#Set('javascript_xo_executable', 'xo') -call ale#Set('javascript_xo_use_global', 0) +call ale#Set('javascript_xo_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_xo_options', '') function! ale_linters#javascript#xo#GetExecutable(buffer) abort diff --git a/ale_linters/less/lessc.vim b/ale_linters/less/lessc.vim index 108679de..5fd9a383 100755 --- a/ale_linters/less/lessc.vim +++ b/ale_linters/less/lessc.vim @@ -3,7 +3,7 @@ call ale#Set('less_lessc_executable', 'lessc') call ale#Set('less_lessc_options', '') -call ale#Set('less_lessc_use_global', 0) +call ale#Set('less_lessc_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#less#lessc#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'less_lessc', [ diff --git a/ale_linters/less/stylelint.vim b/ale_linters/less/stylelint.vim index 690c8c93..8e16a098 100644 --- a/ale_linters/less/stylelint.vim +++ b/ale_linters/less/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('less_stylelint_executable', 'stylelint') call ale#Set('less_stylelint_options', '') -call ale#Set('less_stylelint_use_global', 0) +call ale#Set('less_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#less#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'less_stylelint', [ diff --git a/ale_linters/ocaml/ols.vim b/ale_linters/ocaml/ols.vim index c0255a6c..077862fc 100644 --- a/ale_linters/ocaml/ols.vim +++ b/ale_linters/ocaml/ols.vim @@ -2,7 +2,7 @@ " Description: A language server for OCaml call ale#Set('ocaml_ols_executable', 'ocaml-language-server') -call ale#Set('ocaml_ols_use_global', 0) +call ale#Set('ocaml_ols_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#linter#Define('ocaml', { \ 'name': 'ols', diff --git a/ale_linters/php/langserver.vim b/ale_linters/php/langserver.vim index be2d6ef1..7e1321f9 100644 --- a/ale_linters/php/langserver.vim +++ b/ale_linters/php/langserver.vim @@ -2,7 +2,7 @@ " Description: PHP Language server integration for ALE call ale#Set('php_langserver_executable', 'php-language-server.php') -call ale#Set('php_langserver_use_global', 0) +call ale#Set('php_langserver_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#php#langserver#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_langserver', [ diff --git a/ale_linters/php/phpcs.vim b/ale_linters/php/phpcs.vim index 399fbd23..faf8ad55 100644 --- a/ale_linters/php/phpcs.vim +++ b/ale_linters/php/phpcs.vim @@ -4,7 +4,7 @@ let g:ale_php_phpcs_standard = get(g:, 'ale_php_phpcs_standard', '') call ale#Set('php_phpcs_executable', 'phpcs') -call ale#Set('php_phpcs_use_global', 0) +call ale#Set('php_phpcs_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#php#phpcs#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_phpcs', [ diff --git a/ale_linters/pug/puglint.vim b/ale_linters/pug/puglint.vim index 6c29efe9..165e68b7 100644 --- a/ale_linters/pug/puglint.vim +++ b/ale_linters/pug/puglint.vim @@ -3,7 +3,7 @@ call ale#Set('pug_puglint_options', '') call ale#Set('pug_puglint_executable', 'pug-lint') -call ale#Set('pug_puglint_use_global', 0) +call ale#Set('pug_puglint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#pug#puglint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'pug_puglint', [ diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index e7bbcfb1..4de4daff 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -8,7 +8,7 @@ let g:ale_python_flake8_executable = let s:default_options = get(g:, 'ale_python_flake8_args', '') let g:ale_python_flake8_options = \ get(g:, 'ale_python_flake8_options', s:default_options) -let g:ale_python_flake8_use_global = get(g:, 'ale_python_flake8_use_global', 0) +let g:ale_python_flake8_use_global = get(g:, 'ale_python_flake8_use_global', get(g:, 'ale_use_global_executables', 0)) function! s:UsingModule(buffer) abort return ale#Var(a:buffer, 'python_flake8_options') =~# ' *-m flake8' diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim index c1c91742..e8ceb6a3 100644 --- a/ale_linters/python/mypy.vim +++ b/ale_linters/python/mypy.vim @@ -4,7 +4,7 @@ call ale#Set('python_mypy_executable', 'mypy') call ale#Set('python_mypy_ignore_invalid_syntax', 0) call ale#Set('python_mypy_options', '') -call ale#Set('python_mypy_use_global', 0) +call ale#Set('python_mypy_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#mypy#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_mypy', ['mypy']) diff --git a/ale_linters/python/prospector.vim b/ale_linters/python/prospector.vim index 66af598a..b3d11aa8 100644 --- a/ale_linters/python/prospector.vim +++ b/ale_linters/python/prospector.vim @@ -7,7 +7,7 @@ let g:ale_python_prospector_executable = let g:ale_python_prospector_options = \ get(g:, 'ale_python_prospector_options', '') -let g:ale_python_prospector_use_global = get(g:, 'ale_python_prospector_use_global', 0) +let g:ale_python_prospector_use_global = get(g:, 'ale_python_prospector_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#prospector#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_prospector', ['prospector']) diff --git a/ale_linters/python/pycodestyle.vim b/ale_linters/python/pycodestyle.vim index 19f05a53..9254f4ab 100644 --- a/ale_linters/python/pycodestyle.vim +++ b/ale_linters/python/pycodestyle.vim @@ -3,7 +3,7 @@ call ale#Set('python_pycodestyle_executable', 'pycodestyle') call ale#Set('python_pycodestyle_options', '') -call ale#Set('python_pycodestyle_use_global', 0) +call ale#Set('python_pycodestyle_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pycodestyle#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pycodestyle', ['pycodestyle']) diff --git a/ale_linters/python/pyflakes.vim b/ale_linters/python/pyflakes.vim index b4a0b5f9..475c3a6d 100644 --- a/ale_linters/python/pyflakes.vim +++ b/ale_linters/python/pyflakes.vim @@ -2,7 +2,7 @@ " Description: pyflakes for python files call ale#Set('python_pyflakes_executable', 'pyflakes') -call ale#Set('python_pyflakes_use_global', 0) +call ale#Set('python_pyflakes_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pyflakes#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pyflakes', ['pyflakes']) diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index d757e8e8..27ee6c61 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -7,7 +7,7 @@ let g:ale_python_pylint_executable = let g:ale_python_pylint_options = \ get(g:, 'ale_python_pylint_options', '') -let g:ale_python_pylint_use_global = get(g:, 'ale_python_pylint_use_global', 0) +let g:ale_python_pylint_use_global = get(g:, 'ale_python_pylint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pylint#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pylint', ['pylint']) diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim index 9888853f..42c60431 100644 --- a/ale_linters/python/pyls.vim +++ b/ale_linters/python/pyls.vim @@ -2,7 +2,7 @@ " Description: A language server for Python call ale#Set('python_pyls_executable', 'pyls') -call ale#Set('python_pyls_use_global', 0) +call ale#Set('python_pyls_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pyls#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pyls', ['pyls']) diff --git a/ale_linters/reason/ols.vim b/ale_linters/reason/ols.vim index b2cd5f79..4e5bd395 100644 --- a/ale_linters/reason/ols.vim +++ b/ale_linters/reason/ols.vim @@ -2,7 +2,7 @@ " Description: A language server for Reason call ale#Set('reason_ols_executable', 'ocaml-language-server') -call ale#Set('reason_ols_use_global', 0) +call ale#Set('reason_ols_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#linter#Define('reason', { \ 'name': 'ols', diff --git a/ale_linters/sass/stylelint.vim b/ale_linters/sass/stylelint.vim index 98c37257..fe941d6a 100644 --- a/ale_linters/sass/stylelint.vim +++ b/ale_linters/sass/stylelint.vim @@ -1,7 +1,7 @@ " Author: diartyz <diartyz@gmail.com> call ale#Set('sass_stylelint_executable', 'stylelint') -call ale#Set('sass_stylelint_use_global', 0) +call ale#Set('sass_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#sass#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'sass_stylelint', [ diff --git a/ale_linters/scss/stylelint.vim b/ale_linters/scss/stylelint.vim index 00189a8b..6bfdd09a 100644 --- a/ale_linters/scss/stylelint.vim +++ b/ale_linters/scss/stylelint.vim @@ -1,7 +1,7 @@ " Author: diartyz <diartyz@gmail.com> call ale#Set('scss_stylelint_executable', 'stylelint') -call ale#Set('scss_stylelint_use_global', 0) +call ale#Set('scss_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#scss#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'scss_stylelint', [ diff --git a/ale_linters/stylus/stylelint.vim b/ale_linters/stylus/stylelint.vim index 2721529b..1562692a 100644 --- a/ale_linters/stylus/stylelint.vim +++ b/ale_linters/stylus/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('stylus_stylelint_executable', 'stylelint') call ale#Set('stylus_stylelint_options', '') -call ale#Set('stylus_stylelint_use_global', 0) +call ale#Set('stylus_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#stylus#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'stylus_stylelint', [ diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim index 6f94fbae..b28f7cee 100644 --- a/ale_linters/typescript/tslint.vim +++ b/ale_linters/typescript/tslint.vim @@ -4,7 +4,7 @@ call ale#Set('typescript_tslint_executable', 'tslint') call ale#Set('typescript_tslint_config_path', '') call ale#Set('typescript_tslint_rules_dir', '') -call ale#Set('typescript_tslint_use_global', 0) +call ale#Set('typescript_tslint_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('typescript_tslint_ignore_empty_files', 0) function! ale_linters#typescript#tslint#GetExecutable(buffer) abort diff --git a/ale_linters/typescript/tsserver.vim b/ale_linters/typescript/tsserver.vim index 7a155bd9..5eb77dad 100644 --- a/ale_linters/typescript/tsserver.vim +++ b/ale_linters/typescript/tsserver.vim @@ -3,7 +3,7 @@ call ale#Set('typescript_tsserver_executable', 'tsserver') call ale#Set('typescript_tsserver_config_path', '') -call ale#Set('typescript_tsserver_use_global', 0) +call ale#Set('typescript_tsserver_use_global', get(g:, 'ale_use_global_executables', 0)) " These functions need to be defined just to comply with the API for LSP. function! ale_linters#typescript#tsserver#GetProjectRoot(buffer) abort diff --git a/ale_linters/yaml/swaglint.vim b/ale_linters/yaml/swaglint.vim index 75a496c5..4a22c70f 100644 --- a/ale_linters/yaml/swaglint.vim +++ b/ale_linters/yaml/swaglint.vim @@ -2,7 +2,7 @@ " Description: This file adds support for linting Swagger / OpenAPI documents using swaglint call ale#Set('yaml_swaglint_executable', 'swaglint') -call ale#Set('yaml_swaglint_use_global', 0) +call ale#Set('yaml_swaglint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#yaml#swaglint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'yaml_swaglint', [ |