diff options
author | w0rp <devw0rp@gmail.com> | 2017-12-02 20:38:28 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-12-02 20:38:28 +0000 |
commit | acd12603395f8541c4ee13d9b16e2595c9219343 (patch) | |
tree | 34d273138af676f6456c9280501e6a9a70e820f8 /ale_linters/perl | |
parent | 2bd966c5cc33b8b19570a7978845c2786da62363 (diff) | |
download | ale-acd12603395f8541c4ee13d9b16e2595c9219343.zip |
Revert "Fix #1186 - Use -w by default for Perl, which does not execute code"
This reverts commit f5fc746d00a8b8e0aaac1904ce97ad7eb52e1b24.
Diffstat (limited to 'ale_linters/perl')
-rw-r--r-- | ale_linters/perl/perl.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim index 6421d4ff..33288061 100644 --- a/ale_linters/perl/perl.vim +++ b/ale_linters/perl/perl.vim @@ -1,15 +1,18 @@ " Author: Vincent Lequertier <https://github.com/SkySymbol> " Description: This file adds support for checking perl syntax -call ale#Set('perl_perl_executable', 'perl') -call ale#Set('perl_perl_options', '-w -Mwarnings -Ilib') +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') 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#Escape(ale_linters#perl#perl#GetExecutable(a:buffer)) + return ale_linters#perl#perl#GetExecutable(a:buffer) \ . ' ' . ale#Var(a:buffer, 'perl_perl_options') \ . ' %t' endfunction |