Add profile, other options to the perlcritic linter (#675)

* Add profile, other options to the perlcritic linter
This commit is contained in:
Chris Weyl
2017-06-29 07:08:51 -05:00
committed by w0rp
parent 411c6b5e9f
commit 3f1cab3e7e
4 changed files with 137 additions and 23 deletions

View File

@@ -25,6 +25,37 @@ g:ale_perl_perl_options *g:ale_perl_perl_options*
-------------------------------------------------------------------------------
perlcritic *ale-perl-perlcritic*
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.
Set to an empty string to disable using a profile.
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.
g:ale_perl_perlcritic_showrules *g:ale_perl_perlcritic_showrules*
Type: |Number|