diff --git a/doc/syntastic-checkers.txt b/doc/syntastic-checkers.txt index 0e64a766..f62891e1 100644 --- a/doc/syntastic-checkers.txt +++ b/doc/syntastic-checkers.txt @@ -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 +Name: hadolint +Maintainer: Jesper B. Rosenkilde -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 diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 47f16cf0..7dc0e712 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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 diff --git a/syntax_checkers/dockerfile/hadolint.vim b/syntax_checkers/dockerfile/hadolint.vim index 0b0ad6b9..4fd45b3e 100644 --- a/syntax_checkers/dockerfile/hadolint.vim +++ b/syntax_checkers/dockerfile/hadolint.vim @@ -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({