Revert "Fix #1186 - Use -w by default for Perl, which does not execute code"

This reverts commit f5fc746d00.
This commit is contained in:
w0rp
2017-12-02 20:38:28 +00:00
parent 2bd966c5cc
commit acd1260339
3 changed files with 7 additions and 45 deletions

View File

@@ -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