2017-03-28 22:25:44 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE Perl Integration *ale-perl-options*
|
|
|
|
|
2017-12-02 20:43:47 +00:00
|
|
|
ALE offers a few ways to check Perl code. Checking code with `perl` is
|
|
|
|
disabled by default, as `perl` code cannot be checked without executing it.
|
2018-02-28 15:26:44 +00:00
|
|
|
Specifically, we use the `-c` flag to see if `perl` code compiles. This does
|
|
|
|
not execute all of the code in a file, but it does run `BEGIN` and `CHECK`
|
|
|
|
blocks. See `perl --help` and https://stackoverflow.com/a/12908487/406224
|
2017-12-02 20:43:47 +00:00
|
|
|
|
|
|
|
See |g:ale_linters|.
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
perl *ale-perl-perl*
|
|
|
|
|
|
|
|
g:ale_perl_perl_executable *g:ale_perl_perl_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_perl_perl_executable*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'perl'`
|
|
|
|
|
|
|
|
This variable can be changed to modify the executable used for linting perl.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_perl_perl_options *g:ale_perl_perl_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_perl_perl_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
2017-12-02 20:38:28 +00:00
|
|
|
Default: `'-c -Mwarnings -Ilib'`
|
2017-03-28 22:25:44 +00:00
|
|
|
|
|
|
|
This variable can be changed to alter the command-line arguments to the perl
|
|
|
|
invocation.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-06-11 20:13:47 +00:00
|
|
|
perlcritic *ale-perl-perlcritic*
|
|
|
|
|
2017-06-29 12:08:51 +00:00
|
|
|
g:ale_perl_perlcritic_executable *g:ale_perl_perlcritic_executable*
|
|
|
|
*b:ale_perl_perlcritic_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'perlcritic'`
|
|
|
|
|
|
|
|
This variable can be changed to modify the perlcritic executable used for
|
|
|
|
linting perl.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_perl_perlcritic_profile *g:ale_perl_perlcritic_profile*
|
|
|
|
*b:ale_perl_perlcritic_profile*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'.perlcriticrc'`
|
|
|
|
|
|
|
|
This variable can be changed to modify the perlcritic profile used for
|
|
|
|
linting perl. The current directory is checked for the file, then the
|
|
|
|
parent directory, etc, until it finds one. If no matching file is found, no
|
|
|
|
profile is passed to perlcritic.
|
|
|
|
|
2017-06-30 15:12:12 +00:00
|
|
|
Set to an empty string to disable passing a specific profile to perlcritic
|
|
|
|
with the `'--profile'` option.
|
|
|
|
|
|
|
|
To prevent perlcritic from using any profile, set this variable to an empty
|
|
|
|
string and pass `'--no-profile'`to perlcritic via the
|
|
|
|
|g:ale_perl_perlcritic_options| variable.
|
2017-06-29 12:08:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_perl_perlcritic_options *g:ale_perl_perlcritic_options*
|
|
|
|
*b:ale_perl_perlcritic_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to supply additional command-line arguments to
|
|
|
|
the perlcritic invocation.
|
|
|
|
|
|
|
|
|
2017-06-11 20:13:47 +00:00
|
|
|
g:ale_perl_perlcritic_showrules *g:ale_perl_perlcritic_showrules*
|
|
|
|
|
|
|
|
Type: |Number|
|
2022-10-29 11:56:47 +00:00
|
|
|
Default: `0`
|
2017-06-11 20:13:47 +00:00
|
|
|
|
|
|
|
Controls whether perlcritic rule names are shown after the error message.
|
|
|
|
Defaults to off to reduce length of message.
|
2018-04-21 13:09:38 +00:00
|
|
|
===============================================================================
|
|
|
|
perltidy *ale-perl-perltidy*
|
|
|
|
|
|
|
|
g:ale_perl_perltidy_options *g:ale_perl_perltidy_options*
|
|
|
|
*b:ale_perl_perltidy_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
2017-06-11 20:13:47 +00:00
|
|
|
|
2018-04-21 13:09:38 +00:00
|
|
|
This variable can be changed to alter the command-line arguments to
|
|
|
|
the perltidy invocation.
|
2017-06-11 20:13:47 +00:00
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|