diff options
Diffstat (limited to 'ale_linters/dockerfile')
-rw-r--r-- | ale_linters/dockerfile/hadolint.vim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ale_linters/dockerfile/hadolint.vim b/ale_linters/dockerfile/hadolint.vim index df1ac799..ab96d3cf 100644 --- a/ale_linters/dockerfile/hadolint.vim +++ b/ale_linters/dockerfile/hadolint.vim @@ -7,13 +7,7 @@ function! ale_linters#dockerfile#hadolint#Handle(buffer, lines) abort let l:pattern = '\v^/dev/stdin:?(\d+)? (\S+) (.+)$' let l:output = [] - for l:line in a:lines - let l:match = matchlist(l:line, l:pattern) - - if len(l:match) == 0 - continue - endif - + for l:match in ale#util#GetMatches(a:lines, l:pattern) let l:lnum = 0 if l:match[1] !=# '' |