All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('perl', 'perlcritic')
3 call ale#test#SetFilename('test.pl')
4 let g:ale_perl_perlcritic_profile = ''
8 call ale#assert#TearDownLinterTest()
10 Execute(The command should be correct with g:ale_perl_perlcritic_showrules off):
11 let b:ale_perl_perlcritic_showrules = 0
13 AssertLinter 'perlcritic', ale#Escape('perlcritic')
14 \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'
16 Execute(The command should be correct with g:ale_perl_perlcritic_showrules on):
17 let b:ale_perl_perlcritic_showrules = 1
19 AssertLinter 'perlcritic', ale#Escape('perlcritic')
20 \ . ' --verbose ' . ale#Escape('%l:%c %m [%p]\n') . ' --nocolor'
22 Execute(The command search for the profile file when set):
23 let b:ale_perl_perlcritic_profile = 'README.md'
25 let b:readme_path = ale#path#Simplify(expand('%:p:h:h:h') . '/README.md')
27 AssertLinter 'perlcritic', ale#Escape('perlcritic')
28 \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'
29 \ . ' --profile ' . ale#Escape(b:readme_path)
31 Execute(Extra options should be set appropriately):
32 let b:ale_perl_perlcritic_options = 'beep boop'
34 AssertLinter 'perlcritic', ale#Escape('perlcritic')
35 \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'