MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / quit

Function quit

lib/web/jshint.js:19264–19283  ·  view source on GitHub ↗
(code, token, a, b)

Source from the content-addressed store, hash-verified

19262
19263 // Produce an error warning.
19264 function quit(code, token, a, b) {
19265 var percentage = Math.floor((token.line / state.lines.length) * 100);
19266 var message = messages.errors[code].desc;
19267
19268 var exception = {
19269 name: "JSHintError",
19270 line: token.line,
19271 character: token.from,
19272 message: message + " (" + percentage + "% scanned).",
19273 raw: message,
19274 code: code,
19275 a: a,
19276 b: b
19277 };
19278
19279 exception.reason = supplant(message, exception) + " (" + percentage +
19280 "% scanned).";
19281
19282 throw exception;
19283 }
19284
19285 function removeIgnoredMessages() {
19286 var ignored = state.ignoredLines;

Callers 6

applyOptionsFunction · 0.70
warningFunction · 0.70
advanceFunction · 0.70
relationFunction · 0.70
jshint.jsFile · 0.70
itselfFunction · 0.70

Calls 1

supplantFunction · 0.85

Tested by

no test coverage detected