MCPcopy Create free account
hub / github.com/TruthHun/BookStack / cleanup

Function cleanup

static/editor.md/lib/codemirror/addon/lint/javascript-lint.js:34–40  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

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;

Callers 1

parseErrorsFunction · 0.70

Calls 2

fixWithFunction · 0.85
isBogusFunction · 0.85

Tested by

no test coverage detected