diff options
author | Olaf Alders <olaf@wundersolutions.com> | 2017-05-30 16:07:21 -0400 |
---|---|---|
committer | Olaf Alders <olaf@wundersolutions.com> | 2017-05-30 16:07:21 -0400 |
commit | fa02b1d25975a85a9d976214a5161db48fecc907 (patch) | |
tree | b8967fbad8260a1601ab93c479d54129f1614b04 /ale_linters/perl | |
parent | bc317a7be5e5c9db85b59c6377f3a9b9f034535c (diff) | |
download | ale-fa02b1d25975a85a9d976214a5161db48fecc907.zip |
Remove -X flag from perl defaults.
"-X Disables all warnings regardless of use warnings or $^W". See
"perldoc perlrun" or http://perldoc.perl.org/perlrun.html
With the current defaults, warnings are squashed. For example:
$ perl -X -Mwarnings -c -e'BEGIN { 42 + undef }'
-e syntax OK
$ perl -Mwarnings -c -e'BEGIN { 42 + undef }'
Use of uninitialized value in addition (+) at -e line 1.
-e syntax OK
So, it's not clear from the current defaults whether Ale wants to remove
warnings or enable them. As it stands, it's trying to do both and the
disabling appears to win.
This commit enables warnings by default.
Diffstat (limited to 'ale_linters/perl')
-rw-r--r-- | ale_linters/perl/perl.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim index 8720213b..ab4defbc 100644 --- a/ale_linters/perl/perl.vim +++ b/ale_linters/perl/perl.vim @@ -5,7 +5,7 @@ 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', '-X -c -Mwarnings -Ilib') +\ 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') |