Skip to content

Unusued variables #5

Open
Open
@Simounet

Description

@Simounet

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.

Activity

adoy

adoy commented on Apr 8, 2015

@adoy
Owner

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

Simounet commented on Apr 9, 2015

@Simounet
Author

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

self-assigned this
on May 21, 2015
codeinabox

codeinabox commented on Feb 5, 2017

@codeinabox

@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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @adoy@Simounet@codeinabox

      Issue actions

        Unusued variables · Issue #5 · adoy/vim-php-refactoring-toolbox