Skip to content

Latest commit

 

History

History
134 lines (101 loc) · 3.81 KB

README.md

File metadata and controls

134 lines (101 loc) · 3.81 KB

Build Status

Install

NeoBundleLazy 'syngan/vim-vimlint', {
    \ 'depends' : 'ynkdir/vim-vimlparser',
    \ 'autoload' : {
    \ 'functions' : 'vimlint#vimlint'}}

Usage

call vimlint#vimlint(filename [, param])
call vimlint#vimlint('vimlint.vim')
call vimlint#vimlint(directory)
  • output to the file "hoge"
call vimlint#vimlint('vimlint.vim', {'output' : 'hoge'})

Travis-CI

Create .travis.yml in your plugin's directory.

before_script:
    - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
    - git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser

script:
  - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser autoload

Example

PR

undefined variable

function! neobundle#is_installed(...)
  return type(get(a:000, 0, [])) == type([]) ?
        \ !empty(neobundle#_get_installed_bundles(bundle_names)) :
        \ neobundle#config#is_installed(a:1)
endfunction
./neobundle.vim/autoload/neobundle.vim:210:51:6882: undefined variable: bundle_names

unused variable

  " Save options.
  let max_list_save = g:neocomplcache_max_list
  let max_keyword_width_save = g:neocomplcache_max_keyword_width
  let completefunc_save = &l:completefunc
  let manual_start_length = g:neocomplcache_manual_completion_start_length

  try
    .....

    let &l:completefunc = 'neocomplcache#complete#unite_complete'

    ....

  finally
    " Restore options.
    let g:neocomplcache_max_list = max_list_save
    let g:neocomplcache_max_keyword_width = max_keyword_width_save
    let &l:completefunc = 'neocomplcache#complete#auto_complete'
    let g:neocomplcache_manual_completion_start_length = manual_start_length
  endtry
./neocomplcache/autoload/unite/sources/neocomplcache.vim:50:7:2006: unused variable `l:completefunc_save`

E488

let a = 3
if 0
    if a = 0
		let a = 2
	endif
endif
vimlparser: E488: Trailing characters: =: line 4 col 7

elseif

        return self._candidates.to_list()
    else
        return []

    elseif self._status ==# g:eskk#dictionary#HR_NO_RESULT
        throw eskk#dictionary#look_up_error(
        \   "Can't look up '"
function vimlint#vimlint..VimLParser.parse..VimLParser.parse_one_cmd..VimLParser
.parse_command..VimLParser.parse_cmd_elseif, 鐃緒申 2^@vimlparser: E582: :elseif wit
hout :if: line 429 col 5

Blog in Japanese