SiLeBAT/FSK-Lab

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

Summary

Maintainability
B
6 hrs
Test Coverage

Function token has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      token: function(stream, state) {
        var m;
        if (state.state == "top") {
          if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) {
            state.state = "headers";

Avoid deeply nested control flow statements.
Open

            if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) {
              return null;
            } else {
              stream.next();
              return "error";

Avoid deeply nested control flow statements.
Open

            if (m[1] != state.type) return "error";

Avoid too many return statements within this function.
Open

            if (m[1] != state.type) return "error";

Avoid too many return statements within this function.
Open

              return null;

Avoid too many return statements within this function.
Open

            return "tag";

Avoid too many return statements within this function.
Open

          return errorIfNotEmpty(stream);

Avoid too many return statements within this function.
Open

              return "error";

Avoid too many return statements within this function.
Open

          return "string";

There are no issues that match your filters.

Category
Status