SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

        if (keywords.propertyIsEnumerable(word)) {
          var kw = keywords[word]
          return ret(kw.type, kw.style, word)
        }

Avoid deeply nested control flow statements.
Open

          if (pos == 0) return

Function JSLexical has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function JSLexical(indented, column, type, align, prev, info) {

Avoid deeply nested control flow statements.
Open

        if (word == "async" && stream.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/, false))
          return ret("async", "keyword", word)

Avoid deeply nested control flow statements.
Open

      if (stream.eat("\\")) stream.eatWhile(/\w/);
      else stream.next();
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if(stream.eat(" ") || stream.sol()) {
            if(stream.match(keywords)) {
              return "keyword";
            }
            if(stream.match(atom)) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/jinja2/jinja2.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

      } else if (identifier(stream)) {
        if (stream.peek() === ':') {
          return 'variable';
        }
        return 'variable-2';
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pegjs/pegjs.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

    } else if (ch == ":") {
      if (stream.eat("'")) return chain(readQuoted("'", "atom", false), stream, state);
      if (stream.eat('"')) return chain(readQuoted('"', "atom", true), stream, state);

      // :> :>> :< :<< are valid symbols
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (state.inString) {
                state.lastTokenWasBuiltin = false;
                return "string";
            }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/velocity/velocity.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

        } else if (/[<>*+\-]/.test(ch)) {
          stream.eat(ch)
          if (ch == ">") stream.eat(ch)
        }

Avoid deeply nested control flow statements.
Open

            if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) {
              state.inCharacterClass = false;
            }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pegjs/pegjs.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

        if (!token) {
          for (var i = 0; i < text.length; i++) {
            if (text[i] === '{') {
              state.braced++;
            } else if (text[i] === '}') {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pegjs/pegjs.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (stream.eat(/[eE]/)) {        // float with exponent
            if (stream.eat(/[-+]/)) {
              if (!stream.eatWhile(digitRE)) {
                stream.backUp(2);            // "2e-" - syntax error
              }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/erlang/erlang.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                        if(c=="<")
                                                return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers);
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/perl/perl.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

      if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ecl/ecl.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                        if(c=="[")
                                                return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers);
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/perl/perl.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (stream.pos > word.length && stream.string.charAt(stream.pos-word.length-1)=="." && state.lastTokenWasBuiltin)
                return "builtin";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/velocity/velocity.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (functions && functions.propertyIsEnumerable(word) ||
                    (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") &&
                     !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) {
                state.beforeParams = true;
                state.lastTokenWasBuiltin = false;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/velocity/velocity.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (keywords && keywords.propertyIsEnumerable(word))
                return "keyword";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/velocity/velocity.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                        if(c=="<"){
                                                eatSuffix(stream, 2);
                                                return tokenChain(stream,state,[">"],"string");}
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/perl/perl.js - About 45 mins to fix
Severity
Category
Status
Source
Language