Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect unwanted assigning to global variable at top-level by :for #354

Open
tyru opened this issue Feb 25, 2020 · 1 comment
Open

Detect unwanted assigning to global variable at top-level by :for #354

tyru opened this issue Feb 25, 2020 · 1 comment

Comments

@tyru
Copy link
Collaborator

tyru commented Feb 25, 2020

I appreciate if vint catches this case.

Should detect

" Implicit assigning to g:i by :for
for i in range(3)
endfor

Should not detect

if !exists('g:myplugin_enable_foo')
  let g:myplugin_enable_foo = 0
endif
@tyru
Copy link
Collaborator Author

tyru commented Feb 25, 2020

Real example: tsuyoshicho/vim-efm-langserver-settings#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant