Vimjas / vint

Fast and Highly Extensible Vim script Language Lint implemented in Python.
MIT License
703 stars 33 forks source link

vlint doesn't warn on initializing a variable under conditional #352

Open hseg opened 4 years ago

hseg commented 4 years ago

Consider

if foo()
    let l:bar = 'hello'
endif
let l:baz = l:bar . ' world'

If foo() fails, vim will error out on the assignmant of l:baz complaining l:bar is undefined.