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

Bug 477220

Summary: [quickfix] Offer Quick fix to insert a ';'
Product: [ECD] Orion Reporter: Steve Northover <steve_northover>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: Michael_Rennie
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
already have this none

Description Steve Northover CLA 2015-09-11 11:05:28 EDT

    
Comment 1 Steve Northover CLA 2015-09-11 11:08:25 EDT
1) Use the following code:

function Counter (tag) {
	var value = 0;
	this.getValue = function getValue () {
		return value;
	}
}

2) You will get a warning that '; is missing after the function declartion
3) FEATURE: Offer a quick fix to add the ';'

What would be REALLY great would be to offer to fix all errors of this type but that is covered by another bug report.
Comment 2 Michael Rennie CLA 2015-09-14 12:13:21 EDT
Created attachment 256556 [details]
already have this

I was pretty sure I had added this a long time ago. Turns our I did.
Comment 3 Michael Rennie CLA 2015-09-14 12:37:00 EDT
Closing as dupe of bug 453359, where the fix was added.

We have a wiki describing all of the rules we have and if they have quick fixes:

https://wiki.eclipse.org/Orion/ESLint

*** This bug has been marked as a duplicate of bug 453359 ***