| Summary: | [quickfix] Offer Quick fix to insert a ';' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Steve Northover <steve_northover> | ||||
| Component: | JS Tools | Assignee: | 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
Steve Northover
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.
Created attachment 256556 [details]
already have this
I was pretty sure I had added this a long time ago. Turns our I did.
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 *** |