I use vimwith the plugin Ale. By default, errors are perlcriticdisplayed as errors. I would like them to appear as warnings. According to :help g:ale_type_mapme, I should be able to do this, but itβs not clear to me exactly how.
vim
Ale
perlcritic
:help g:ale_type_map
let g:ale_type_map = {'perl': {'E': 'W'}}Changes errors perlto warnings.
let g:ale_type_map = {'perl': {'E': 'W'}}
perl
let g:ale_type_map = {'perl': {'ES': 'WS'}}does not seem to affect criticism violations. None of them:
let g:ale_type_map = {'perl': {'ES': 'WS'}}
let g:ale_type_map = {'perlcritic': {'ES': 'WS', 'E': 'W'}} let g:ale_type_map = {'perl_perlcritic': {'ES': 'WS', 'E': 'W'}}
The documents on this are pretty sparse, so I donβt understand if the problem is with the syntax, the Linter name, or something else.
, perltidy, Perl::Critic:
perltidy
Perl::Critic
let g:ale_type_map = { \ 'perl': {'ES': 'WS'}, \ 'perlcritic': {'ES': 'WS', 'E': 'W'}, \}
, perl, Perl::Critic. perl , Perl::Critic, . , Perl::Critic . , Ale, , - .
, ale_type_map - dict, , , . - , , .
ale_type_map
Source: https://habr.com/ru/post/1685176/More articles:Hot and cold observations in Angular - angularDid the paging module come out? - cssDifference between cold or hot HTTP requests? - angularBuild mode and associated counting functions Using custom aggregation functions for GroupBy in Dask - pythondeployed interactive web application requires hard upgrade - reactjsWhy does g ++ accept a reference type with a missing base type? - c ++Keras with TensorFlow support without GPU - dockerVSX? Vmx? Altivec? VR? VSR ?! How are these PowerPC SIMD acronyms related to each other? - powerpcAsync waits with axioms not returning errors - javascriptGet EC2 Instance instance description using Java SDK? - javaAll Articles