FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16114&edit=1

ID: 16114
Updated by: [email protected]
Reported By: sb at sebastian-bergmann dot de
Summary: Find unused functions, methods, classes
-Status: Assigned
+Status: Open
Type: Feature/Change Request
Package: PHP_CodeSniffer
Operating System: Irrelevant
Package Version: CVS
PHP Version: Irrelevant
Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Assigned
+Status: Open



Previous Comments:
------------------------------------------------------------------------

[2009-07-02 08:31:10] squiz

-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: squiz


------------------------------------------------------------------------

[2009-05-26 12:22:59] sebastian

Just because we cannot cater to dynamic function/method invocation
should not prevent us from implementing this.

------------------------------------------------------------------------

[2009-05-23 19:36:37] doconnor

If you have any kind of code like:

$foo->$bar();

Uh oh!

------------------------------------------------------------------------

[2009-04-17 11:54:15] sebastian

Description:
------------
Multi-File/Multi-Pass sniff that first collects a list of all declared
functions and methods and then checks whether each is called at least
once. A function/method that is not called should then be reported as an
error.

------------------------------------------------------------------------

Search Discussions

  • Gsherwood at Apr 20, 2011 at 5:39 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16114&edit=1

    ID: 16114
    Updated by: [email protected]
    Reported By: sb at sebastian-bergmann dot de
    Summary: Find unused functions, methods, classes
    -Status: Open
    +Status: Closed
    Type: Feature/Change Request
    Package: PHP_CodeSniffer
    Operating System: Irrelevant
    Package Version: CVS
    PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: squiz
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: squiz
    I'm closing this report because I'm not adding any new sniffs to PHPCS
    unless:
    - One gets contributed by someone
    - PEAR needs it because of a change to the standard
    - I happen to need it for something

    May as well not leave this request open when I'm not going to be able to
    get around to it due to other commitments.

    Thank you for your suggestion though. If anyone wants to contribute a
    sniff for this, please re-open this report.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-04-07 07:55:38] squiz

    -Status: Assigned
    +Status: Open


    ------------------------------------------------------------------------

    [2009-07-02 08:31:10] squiz

    -Status: Open
    +Status: Assigned
    -Assigned To:
    +Assigned To: squiz


    ------------------------------------------------------------------------

    [2009-05-26 12:22:59] sebastian

    Just because we cannot cater to dynamic function/method invocation
    should not prevent us from implementing this.

    ------------------------------------------------------------------------

    [2009-05-23 19:36:37] doconnor

    If you have any kind of code like:

    $foo->$bar();

    Uh oh!

    ------------------------------------------------------------------------

    [2009-04-17 11:54:15] sebastian

    Description:
    ------------
    Multi-File/Multi-Pass sniff that first collects a list of all declared
    functions and methods and then checks whether each is called at least
    once. A function/method that is not called should then be reported as an
    error.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 7, '11 at 6:53a
activeApr 20, '11 at 5:39a
posts2
users1
websitepear.php.net

1 user in discussion

Gsherwood: 2 posts

People

Translate

site design / logo © 2023 Grokbase