deprecation-detector icon indicating copy to clipboard operation
deprecation-detector copied to clipboard

Include vendor deprecation warnings

Open arderyp opened this issue 8 years ago • 4 comments

Firstly, thanks for the awesome tool!

I've run it against my codebase with:

./deprecation-detector check $PROJECT/src $PROJECT/vendor

It found lots of helpful things to cleanup. Now when I run it, nothing is found. However, if I go to one of my views, I do see deprecation warnings in the profiler related to my Twig dependency. It's not my issue, but the related deprecation is discussed here: https://github.com/twigphp/Twig/issues/2267

If there is any more info I can provide that would be helpful, please let me know.

arderyp avatar Feb 23 '17 20:02 arderyp

Actually the tool doesn't check if there are any deprecations in your twig templates.

slde-robin avatar Feb 28 '17 08:02 slde-robin

Right, that's the reason I opened the issue, so there could be some discussion about it.

Do you think this type of functionality could be added? I'm thinking beyond templates specifically. Do you think the tool could find and report all deprecation warnings that the symfony profiler would report? That would be the ultimate goal, I think.

Sent from a phone

On Feb 28, 2017, at 12:24 AM, slde-robin [email protected] wrote:

Actually the tool doesn't check if there are any deprecations in your twig templates.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

arderyp avatar Feb 28 '17 16:02 arderyp

The profiler gathers the warnings by actually executing the code. The detector does not execute the code.

To add Twig support we would need a twig parser and so on... IMO thats too much.

But you could check your compiled Twig templates in the cache dir for deprecations. Right now I don't have the time to test that myself. It would be great if you could test that and give me review

slde-robin avatar Mar 01 '17 13:03 slde-robin

Awesome, thanks for the very helpful info.

Sent from a phone

On Mar 1, 2017, at 5:25 AM, slde-robin [email protected] wrote:

The profiler gathers the warnings by actually executing the code. The detector does not execute the code.

To add Twig support we would need a twig parser and so on... IMO thats too much.

But you could check your compiled Twig templates in the cache dir for deprecations. Right now I don't have the time to test that myself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

arderyp avatar Mar 01 '17 17:03 arderyp