I'm using vim
with the Ale
plugin. By default, perlcritic
violations show up as errors. I'd like to see them displayed as warnings. According to :help g:ale_type_map
I should be able to do this, but it isn't clear to me exactly how.
let g:ale_type_map = {'perl': {'E': 'W'}}
will change perl
errors into warnings.
let g:ale_type_map = {'perl': {'ES': 'WS'}}
does not appear to have any effect on the critic violations. Neither do either of these:
let g:ale_type_map = {'perlcritic': {'ES': 'WS', 'E': 'W'}}
let g:ale_type_map = {'perl_perlcritic': {'ES': 'WS', 'E': 'W'}}
The docs on this are pretty sparse, so I'm unclear on whether it's an issue with syntax, linter name or something else entirely.