(error)
| 32 | CodeMirror.registerHelper("lint", "javascript", validator); |
| 33 | |
| 34 | function cleanup(error) { |
| 35 | // All problems are warnings by default |
| 36 | fixWith(error, warnings, "warning", true); |
| 37 | fixWith(error, errors, "error"); |
| 38 | |
| 39 | return isBogus(error) ? null : error; |
| 40 | } |
| 41 | |
| 42 | function fixWith(error, fixes, severity, force) { |
| 43 | var description, fix, find, replace, found; |
no test coverage detected