SiLeBAT/FSK-Lab

View on GitHub
de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function readToken has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function readToken(stream, state) {
  if (stream.sol()) {
    // From last line
    state.inSeparator = false;
    if (state.inHeader && stream.match(whitespace)) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 2 hrs to fix

Avoid too many return statements within this function.
Open

    return style;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    return null;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      if (stream.match(untilBracketedEmail)) return style;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(untilEmail)) return "atom";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      if (stream.match(bracketedEmail)) return style + " link";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(email)) return "link";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    return "atom";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

  return null;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 30 mins to fix

There are no issues that match your filters.

Category
Status