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

View File

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

View File

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