fluent/fluentd-ui

View on GitHub
app/javascript/packs/codemirror.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

    token: function(stream, state) {
      if (stream.eatWhile(/[ \t]/)) {
        // ignore indenting spaces
        stream.skipTo(stream.peek());
        return;
Severity: Minor
Found in app/javascript/packs/codemirror.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

              return "variable";
    Severity: Major
    Found in app/javascript/packs/codemirror.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                return "builtin";
      Severity: Major
      Found in app/javascript/packs/codemirror.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return "string";
        Severity: Major
        Found in app/javascript/packs/codemirror.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return "keyword";
          Severity: Major
          Found in app/javascript/packs/codemirror.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return "keyword";
            Severity: Major
            Found in app/javascript/packs/codemirror.js - About 30 mins to fix

              There are no issues that match your filters.

              Category
              Status