Add end_lnum and end_col in cfn_python_lint handler
This commit is contained in:
parent
ae25d71fa8
commit
eabf5d55d6
@ -15,6 +15,8 @@ function! ale_linters#cloudformation#cfn_python_lint#Handle(buffer, lines) abort
|
||||
call add(l:output, {
|
||||
\ 'lnum': l:match[2] + 0,
|
||||
\ 'col': l:match[3] + 0,
|
||||
\ 'end_lnum': l:match[4] + 0,
|
||||
\ 'end_col': l:match[5] + 0,
|
||||
\ 'text': l:match[7],
|
||||
\ 'code': l:code,
|
||||
\ 'type': l:code[:0] is# 'E' ? 'E' : 'W',
|
||||
|
@ -11,6 +11,8 @@ Execute(The cfn_python_lint handler should parse items correctly):
|
||||
\ {
|
||||
\ 'lnum': 96,
|
||||
\ 'col': 7,
|
||||
\ 'end_lnum': 96,
|
||||
\ 'end_col': 15,
|
||||
\ 'text': 'Property Resources/Sample/Properties/FromPort should be of type Integer',
|
||||
\ 'code': 'E3012',
|
||||
\ 'type': 'E',
|
||||
@ -18,6 +20,8 @@ Execute(The cfn_python_lint handler should parse items correctly):
|
||||
\ {
|
||||
\ 'lnum': 97,
|
||||
\ 'col': 7,
|
||||
\ 'end_lnum': 97,
|
||||
\ 'end_col': 15,
|
||||
\ 'text': 'AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/SampleIpAddress. Example for AllowedPattern "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"',
|
||||
\ 'code': 'W2509',
|
||||
\ 'type': 'W',
|
||||
|
Loading…
Reference in New Issue
Block a user