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 248696

Summary: Falsely detected global variables and functions
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample file

Description Vladimir Riha 2014-11-17 18:14:07 UTC
Created attachment 150531 [details]
sample file

Please check the attached JS files. They contains multiple warnings about global variables which are not correct as given variables (or functions in some cases) are not global.

Following properties are marked as global and should not be:
 - line 27, variable LoginService
 - line 37, function factory
 - line 101 function controller

Marking as P2 as it is highly visible and #2 & #3 are common in (not only I guess) AngularJS.

Thank you


Product Version: NetBeans IDE Dev (Build 201411170001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2015-03-27 10:30:08 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2015-03-28 08:20:09 UTC
Integrated into 'main-silver', will be available in build *201503280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2a80ea925d1b
User: Petr Pisl <ppisl@netbeans.org>
Log: #248696 - Falsely detected global variables and functions
Comment 3 Vladimir Riha 2015-03-30 20:28:25 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201503300001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)