mirror of
https://github.com/dense-analysis/ale
synced 2024-12-12 09:26:42 +00:00
99263bdda4
* Add column number to perlcritic linting output This returns the column number of the perlcritic error so that ale can show the column in addition to the line where perlcritic found an error. * Add perlcritic configuration for rule names This adds a configuration setting so that the name of the perlcritic rule is shown [Rule::Name] after the error message. This is useful to lookup the rule failure. * Add a vader test for perlcritic#GetCommand
17 lines
435 B
Plaintext
17 lines
435 B
Plaintext
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
|