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

This commit is contained in:
w0rp
2017-12-02 12:26:30 +00:00
parent 83760a0952
commit f5fc746d00
3 changed files with 45 additions and 7 deletions

View File

@@ -16,11 +16,15 @@ g:ale_perl_perl_executable *g:ale_perl_perl_executable*
g:ale_perl_perl_options *g:ale_perl_perl_options*
*b:ale_perl_perl_options*
Type: |String|
Default: `'-c -Mwarnings -Ilib'`
Default: `'-w -Mwarnings -Ilib'`
This variable can be changed to alter the command-line arguments to the perl
invocation.
Perl code is checked with `-w` by default, because `-c` can execute
malicious code. You can use the `-c` option at your own risk. See
|g:ale_pattern_options| for changing the option only for specific files.
===============================================================================
perlcritic *ale-perl-perlcritic*