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

Unusued variables #5

Open
Simounet opened this issue Jan 23, 2015 · 3 comments
Open

Unusued variables #5

Simounet opened this issue Jan 23, 2015 · 3 comments
Assignees

Comments

@Simounet
Copy link

Hi,
First of all, thanks for this great Vim plugin. It would be great to add the same feature you did for use but for variables. Do you think it could be handled without heavy side effects?

Have a nice day.

@adoy
Copy link
Owner

adoy commented Apr 8, 2015

Hi, i'll have a look at how easy it could be to do such a thing and how reliable it would be. The use detector may detect that a use is used even if it's not some time since I rely on regex and not on the php parsing result, but it will never break the code only leave a useless use. I'll try to see if I can do the same thing for variables but it seems a little bit harder to do because you have references etc...

@Simounet
Copy link
Author

Simounet commented Apr 9, 2015

Ok, I understand. Keep me posted and thanks for your reply.

@adoy adoy self-assigned this May 21, 2015
@codeinabox
Copy link

@Simounet using PHPMD, which is supported by both Neomake and Syntastic, you can easily find unused variables

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

No branches or pull requests

3 participants