Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 491115

Summary: [cross file linting] Add to globals quick fix should not apply to no-undef-expression
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2016-04-05 14:36:54 EDT
Add the following to main.js in the Minesweeper demo project
	var count = 0;
	counter1 = new Counter ("counter1");
	counter2 = new Counter ("counter2");
	count += counter1.getValue();
	count += counter2.getValued();

counter2.getValued() is not defined.  It has the quick fix 'add to globals directive'.  This isn't accurate because it is a member expression, not a global object.  The fix won't remove the annotation.