Checker hadolint: cleanup.

This commit is contained in:
LCD 47 2017-03-16 10:42:32 +02:00
parent d9f45346c0
commit 7e45ad9163
3 changed files with 9 additions and 15 deletions

View File

@ -1934,6 +1934,7 @@ SYNTAX CHECKERS FOR DOCKERFILE *syntastic-checkers-dockerfile*
The following checkers are available for Dockerfile (filetype "dockerfile"):
1. dockerfile-lint..........|syntastic-dockerfile-dockerfile_lint|
2. Hadolint.................|syntastic-dockerfile-hadolint|
------------------------------------------------------------------------------
1. dockerfile-lint *syntastic-dockerfile-dockerfile_lint*
@ -1958,21 +1959,16 @@ This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------
1. hadolint *syntastic-dockerfile-dockerfile_lint*
2. Hadolint *syntastic-dockerfile-hadolint*
Name: hadoling
Maintainer: Jesper B. Rosenkilde <jbr at humppa dot dk>
Name: hadolint
Maintainer: Jesper B. Rosenkilde <jbr@humppa.dk>
Dockerfile linter written in Haskell
(http://hadolint.lukasmartinelli.ch/)
GitHub for details:
"Hadolint" is a dockerfile linter written in Haskell. See the project's page
at GitHub for details:
https://github.com/lukasmartinelli/hadolint
Installation~
See github
Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.8.0-26'
let g:_SYNTASTIC_VERSION = '3.8.0-30'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -20,17 +20,15 @@ let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_dockerfile_hadolint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'exe': 'hadolint' })
let makeprg = self.makeprgBuild({})
let errorformat = '%W%f:%l %m'
let loclist = SyntasticMake({
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'subtype': 'Style',
\ 'returns': [0, 1] })
return loclist
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({