You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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...
Activity
adoy commentedon 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 commentedon Apr 9, 2015
Ok, I understand. Keep me posted and thanks for your reply.
codeinabox commentedon Feb 5, 2017
@Simounet using PHPMD, which is supported by both Neomake and Syntastic, you can easily find unused variables