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/handler/test_perlcritic_handler.vader
Eddie Lebow 365d023d0e perlcritic: all issues are warnings
Perlcritic is a style checker, not a syntax validator.

This change was originally proposed by @RsrchBoy in
https://github.com/w0rp/ale/pull/784.
2017-11-12 10:56:53 +00:00

20 lines
437 B
Text

Before:
runtime ale_linters/perl/perlcritic.vim
After:
call ale#linter#Reset()
Execute(The Perl::Critic handler should create all issues as warnings):
AssertEqual
\ [
\ {
\ 'lnum': '21',
\ 'col': '17',
\ 'text': 'Regular expression without "/m" flag',
\ 'type': 'W',
\ }
\ ],
\ ale_linters#perl#perlcritic#Handle(99, [
\ '21:17 Regular expression without "/m" flag'
\ ])