This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138377 - No code warnings
Summary: No code warnings
Status: VERIFIED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 15:31 UTC by Mikhail Matveev
Modified: 2008-06-27 15:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2008-06-26 15:31:43 UTC
In M1, no warnings about unusable code, etc., are shown. It is a regression: it works in 200806230002.
In the code fragment below, unreachable code warning must be show in the function f(), unusable code in the function g().

<?php
/**
 * PHP Template.
 */
    
    function f(){
        
        return 1;
        $a=2;
    }
    
    function g(){
        
        $aa=2;
        $aa=3;
    }

?>
Comment 1 Tomasz Slota 2008-06-26 17:04:30 UTC
These warnings were disabled on purpose for the M1 cos the rate of false alarms was unacceptable. I wrote an email about it to the dev list. I am switching 
them back on now and I will start to work on improving their accuracy. Please note that in the future we will have a UI for switching them on and off and they may be disabled by default.

PS. I am marking this issue INVALID to make sure the commit is not back-ported to M1

Commit log:
http://hg.netbeans.org/main/rev/7c6987b1876f
Comment 2 Mikhail Matveev 2008-06-26 17:13:43 UTC
Oops. Sorry for missing that and thanks for the explanation.
Comment 3 Quality Engineering 2008-06-27 15:59:05 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #285 build
Changeset: http://hg.netbeans.org/main/rev/7c6987b1876f
User: Tomasz Slota <tslota@netbeans.org>
Log: #138377: re-enabling the unused- and uninitialized- variable hints