This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/test_perlcritic_showrules.vader

17 lines
435 B
Text
Raw Normal View History

Execute(no g:ale_perl_perlcritic_showrules):
silent noautocmd new testfile.pl
let g:ale_perl_perlcritic_showrules = 0
AssertEqual
\ "perlcritic --verbose '". '%l:%c %m\n' . "' --nocolor",
\ ale_linters#perl#perlcritic#GetCommand(bufnr(''))
let g:ale_perl_perlcritic_showrules = 1
AssertEqual
\ "perlcritic --verbose '". '%l:%c %m [%p]\n' . "' --nocolor",
\ ale_linters#perl#perlcritic#GetCommand(bufnr(''))
:q