Skip to content

lcd047/vim-vimlint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

lint for vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 97.2%
  • Python 1.8%
  • Shell 1.0%