Bashate: cleanup.

This commit is contained in:
LCD 47 2014-10-17 19:41:53 +03:00
parent d155904388
commit 77c125170a

View File

@ -1,10 +1,6 @@
"============================================================================
"File: bashate.vim
"Description: Bash script style checking plugin for syntastic.vim
"Notes: bashate is a pep8 equivalent for bash scripts
" Can be downloaded from:
" https://pypi.python.org/pypi/bashate or
" https://github.com/openstack-dev/bashate
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
@ -25,12 +21,21 @@ function! SyntaxCheckers_sh_bashate_GetLocList() dict
let makeprg = self.makeprgBuild({})
let errorformat =
\ '%EE%n: %m: %.%#,%Z - %f : L%l'
\ '%EE%n: %m,' .
\ '%Z - %f: L%l,' .
\ '%-G%.%#'
return SyntasticMake({
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'subtype': 'Style' })
\ 'subtype': 'Style',
\ 'returns': [0, 1] })
for e in loclist
let e['text'] = substitute(e['text'], "\\m: '.*", '', '')
endfor
return loclist
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({