Identify unused and undefined PHP sublime variables

I use sublimetext3 unregistered. I want to know how I can set up sublime to show unused variables and undefined variables in php.sublimelinter-phplint, does some useful work, but cannot recognize autoload classes, which can be very annoying during development. I am looking for some kind of package that it can do with the file area.

I have already installed packages

  • sublimelinter
  • phpcs

    3.sublime-phpcs

Is there any other package that may be useful during development?

+5
source share
2 answers

http://phpmd.org will display unused code. there is a SublimeLinter-phpmd extension. Just install both SublimeLinter and this extension, open the user settings for SublimeLinter and reduce the phpmd rule set to "rule sets": "unusedcode" to avoid over-reporting on conventions and thus you cannot use.

+5
source

SublimeLinter works pretty well, but for php I use the extension:

https://github.com/SublimeLinter/SublimeLinter-php

For this you need SublimeLinter 3: http://sublimelinter.readthedocs.org/en/latest/installation.html Which I see you already have! ^^

Apport from this .. Another IDE? ^^

A note about another editor that contains many tools. ATOM

+1
source

Source: https://habr.com/ru/post/1214015/


All Articles