summaryrefslogtreecommitdiff
path: root/ale_linters/perl
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-02 12:26:30 +0000
committerw0rp <devw0rp@gmail.com>2017-12-02 12:26:44 +0000
commitf5fc746d00a8b8e0aaac1904ce97ad7eb52e1b24 (patch)
tree714ff39a424d158e22fcf26e28bc8b36091756e8 /ale_linters/perl
parent83760a09521b134497c5d3299cc9962cff8ab76e (diff)
downloadale-f5fc746d00a8b8e0aaac1904ce97ad7eb52e1b24.zip
Fix #1186 - Use -w by default for Perl, which does not execute code
Diffstat (limited to 'ale_linters/perl')
-rw-r--r--ale_linters/perl/perl.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim
index 33288061..6421d4ff 100644
--- a/ale_linters/perl/perl.vim
+++ b/ale_linters/perl/perl.vim
@@ -1,18 +1,15 @@
" Author: Vincent Lequertier <https://github.com/SkySymbol>
" Description: This file adds support for checking perl syntax
-let g:ale_perl_perl_executable =
-\ get(g:, 'ale_perl_perl_executable', 'perl')
-
-let g:ale_perl_perl_options =
-\ get(g:, 'ale_perl_perl_options', '-c -Mwarnings -Ilib')
+call ale#Set('perl_perl_executable', 'perl')
+call ale#Set('perl_perl_options', '-w -Mwarnings -Ilib')
function! ale_linters#perl#perl#GetExecutable(buffer) abort
return ale#Var(a:buffer, 'perl_perl_executable')
endfunction
function! ale_linters#perl#perl#GetCommand(buffer) abort
- return ale_linters#perl#perl#GetExecutable(a:buffer)
+ return ale#Escape(ale_linters#perl#perl#GetExecutable(a:buffer))
\ . ' ' . ale#Var(a:buffer, 'perl_perl_options')
\ . ' %t'
endfunction