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 - Falsely detected global variables and functions
Summary: Falsely detected global variables and functions
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-17 18:14 UTC by Vladimir Riha
Modified: 2015-03-30 20:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample file (9.71 KB, application/javascript)
2014-11-17 18:14 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
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)