SiLeBAT/FSK-Lab

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

Summary

Maintainability
B
6 hrs
Test Coverage

Function tokenBase has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenBase(stream, state) {
    // whitespaces
    if (stream.eatSpace()) return null;

    // Handle one line Comments
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 1 hr to fix

Avoid too many return statements within this function.
Open

    if (m) { return m[1] ? 'string' : "string error"; }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(identifiers)) { return 'variable'; } ;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.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/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

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

Avoid too many return statements within this function.
Open

    if (stream.match(builtins)) { return 'builtin'; } ;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(keywords)) { return 'keyword'; } ;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

    if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 30 mins to fix

There are no issues that match your filters.

Category
Status