| Summary: | Setting global JSLint options hides "variable is not defined" warning | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | antonm |
| Version: | 2.0 | ||
| Target Milestone: | 4.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
Apparently you need to pass the `undef:true` flag to get the behavior I expected. By default, Orion does set that flag, but when you provide your own custom flags in the Settings page, we expect you to set *all* the options manually -- Orion doesn't provide any defaults. This is not very intuitive. Maybe we should relabel the options field as "override JSLint options", and then list which flags are set by default. That way, the default flags will be provided unless explicitly overridden by the user. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=098676e This is implemented. Orion's default options will be passed to JSLint unless the user specifically overrides them. FWIW, the defaults passed by Orion are: > bitwise: false, eqeqeq: true, es5: true, immed: true, indent: 1, maxerr: 300, > newcap: true, nomen: false, onevar: false, plusplus: false, regexp: true, > strict: false, undef: true, white: false |