qossmic / deprecation-detector

MIT License
392 stars 40 forks source link

Simple Console output #117

Closed MarvinKlemp closed 8 years ago

MarvinKlemp commented 8 years ago
➜  marvin-deprecation-detector git:(feature/simple_output) bin/deprecation-detector check examples examples --output=simple
Checking your application for deprecations - this could take a while ...

Loading RuleSet...

RuleSet loaded.

Parsing files & Searching for deprecations...

Finished searching for deprecations.

Rendering output...

Arguments.php
Nr. 1 line 19: Using deprecated class foo1
Nr. 2 line 13: Using deprecated interface oldInterface by class foo

Controller.php
Nr. 3 line 24: Calling deprecated method BaseController->getEntityManager()
Nr. 4 line 26: Calling deprecated static method BaseController::getEntityManager()
Nr. 5 line 28: Using deprecated function hello()

deprecations.php
Nr. 6 line 48: Using deprecated class foo1
Nr. 7 line 78: Calling deprecated static method foo2::fo()
Nr. 8 line 68: Extending deprecated class foo1 by class foo3
Nr. 9 line 46: Using deprecated class foo1
Nr. 10 line 55: Using deprecated class foo1
Nr. 11 line 74: Overriding deprecated method foo4->bar()

dynamic/CallConstructorFirst.php
Nr. 12 line 19: Using deprecated class OtherClass
Nr. 13 line 12: Calling deprecated method OtherClass->hello()
Nr. 14 line 13: Calling deprecated method OtherClass->world()
Nr. 15 line 16: Using deprecated class OtherClass

dynamic/TrackingArguments.php
Nr. 16 line 7: Calling deprecated method OtherClass->hello()
Nr. 17 line 11: Calling deprecated method OtherClass->world()
Nr. 18 line 5: Using deprecated class OtherClass
Nr. 19 line 9: Using deprecated class OtherClass

dynamic/TrackingVariables.php
Nr. 20 line 14: Using deprecated class OtherClass
Nr. 21 line 16: Calling deprecated method OtherClass->hello()
Nr. 22 line 18: Calling deprecated static method OtherClass::world()
Nr. 23 line 20: Calling deprecated static method OtherClass::world()
Nr. 24 line 8: Overriding deprecated method SomeClass->sayHello()

FormType.php
Nr. 25 line 55: Calling deprecated static method ExampleForm\FormTypeInterface::setDefaultOptions()
Nr. 26 line 26: Using deprecated interface OptionsResolverInterface
Nr. 27 line 34: Using deprecated interface OptionsResolverInterface
Nr. 28 line 51: Using deprecated interface OptionsResolverInterface
Nr. 29 line 34: Overriding deprecated method ExampleForm\AbstractType->setDefaultOptions()
Nr. 30 line 51: Overriding deprecated method SomeType\CustomFormType->setDefaultOptions()

LanguageDeprecations.php
Nr. 31 line 12: Using deprecated function call_user_method()
Nr. 32 line 5: Using deprecated language feature PHP4 constructor
Nr. 33 line 10: Using deprecated language feature assign by reference(&=)
Nr. 34 line 13: Using deprecated language feature call-time pass-by-reference
Finished rendering output.

34 deprecations found.
theofidry commented 8 years ago

Provided there's some color, looks good to me 👍