Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

        if (level) {
            var $indentation = $(document.createElement("span"));
            $indentation.addClass("outline-entry-indent");
            var interpunct = "";
            for (var i = 0; i < level; i++) {
Severity: Major
Found in src/languages/CSS.js and 2 other locations - About 3 hrs to fix
src/languages/Jade.js on lines 15..24
src/languages/XML.js on lines 18..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 96.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

  pp$1.regexp_eatUnicodePropertyName = function(state) {
    var ch = 0;
    state.lastStringValue = "";
    while (isUnicodePropertyNameCharacter(ch = state.current())) {
      state.lastStringValue += codePointToString(ch);
Severity: Major
Found in thirdparty/espree.js and 1 other location - About 3 hrs to fix
thirdparty/espree.js on lines 5444..5452

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 96.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

  pp$1.regexp_eatUnicodePropertyValue = function(state) {
    var ch = 0;
    state.lastStringValue = "";
    while (isUnicodePropertyValueCharacter(ch = state.current())) {
      state.lastStringValue += codePointToString(ch);
Severity: Major
Found in thirdparty/espree.js and 1 other location - About 3 hrs to fix
thirdparty/espree.js on lines 5428..5436

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 96.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function 9 has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./feeds.js":6,"./helpers.js":7,"./legacy.js":9,"./manipulation.js":10,"./querying.js":11,"./stringify.js":12,"./traversal.js":13,"domhandler":4}],9:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getElementsByTagType = exports.getElementsByTagName = exports.getElementById = exports.getElements = exports.testElement = void 0;
var domhandler_1 = require("domhandler");
Severity: Major
Found in thirdparty/htmlparser2.js - About 3 hrs to fix

    Function 106 has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],106:[function(require,module,exports){
    /*!
     * Copyright (C) 2017 Glayzzle (BSD3 License)
     * @authors https://github.com/glayzzle/php-parser/graphs/contributors
     * @url http://glayzzle.com
    Severity: Major
    Found in thirdparty/php-parser.js - About 2 hrs to fix

      Function 4 has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"base64-js":1,"buffer":3,"ieee754":4}],4:[function(require,module,exports){
      /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
      exports.read = function (buffer, offset, isLE, mLen, nBytes) {
        var e, m
        var eLen = (nBytes * 8) - mLen - 1
      Severity: Major
      Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

        Function atrule has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          atrule(token) {
            let node = new AtRule()
            node.name = token[1].slice(1)
            if (node.name === '') {
              this.unnamedAtrule(node, token)
        Severity: Major
        Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

          },{"./literal":46}],56:[function(require,module,exports){
          /*!
           * Copyright (C) 2017 Glayzzle (BSD3 License)
           * @authors https://github.com/glayzzle/php-parser/graphs/contributors
           * @url http://glayzzle.com
          Severity: Major
          Found in thirdparty/php-parser.js and 2 other locations - About 2 hrs to fix
          thirdparty/php-parser.js on lines 2179..2200
          thirdparty/php-parser.js on lines 2319..2340

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 93.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          },{}],18:[function(require,module,exports){
          "use strict";
          // Generated using scripts/write-decode-map.ts
          Object.defineProperty(exports, "__esModule", { value: true });
          exports.default = new Uint16Array(
          Severity: Major
          Found in thirdparty/htmlparser2.js and 1 other location - About 2 hrs to fix
          thirdparty/htmlparser2.js on lines 2934..2944

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 93.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

          },{"./statement":70}],72:[function(require,module,exports){
          /*!
           * Copyright (C) 2017 Glayzzle (BSD3 License)
           * @authors https://github.com/glayzzle/php-parser/graphs/contributors
           * @url http://glayzzle.com
          Severity: Major
          Found in thirdparty/php-parser.js and 2 other locations - About 2 hrs to fix
          thirdparty/php-parser.js on lines 1936..1957
          thirdparty/php-parser.js on lines 2179..2200

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 93.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          },{}],19:[function(require,module,exports){
          "use strict";
          // Generated using scripts/write-decode-map.ts
          Object.defineProperty(exports, "__esModule", { value: true });
          exports.default = new Uint16Array(
          Severity: Major
          Found in thirdparty/htmlparser2.js and 1 other location - About 2 hrs to fix
          thirdparty/htmlparser2.js on lines 2924..2934

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 93.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

          },{"./declaration":20}],66:[function(require,module,exports){
          /*!
           * Copyright (C) 2017 Glayzzle (BSD3 License)
           * @authors https://github.com/glayzzle/php-parser/graphs/contributors
           * @url http://glayzzle.com
          Severity: Major
          Found in thirdparty/php-parser.js and 2 other locations - About 2 hrs to fix
          thirdparty/php-parser.js on lines 1936..1957
          thirdparty/php-parser.js on lines 2319..2340

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 93.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Function Ruby has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          define(function Ruby(require, exports, module) {
              "use strict";
          
              /**
               * Create the HTML list entry.
          Severity: Major
          Found in src/languages/Ruby.js - About 2 hrs to fix

            Function 17 has 70 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"./escape.js":17,"./generated/encode-html.js":20}],17:[function(require,module,exports){
            "use strict";
            Object.defineProperty(exports, "__esModule", { value: true });
            exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;
            exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
            Severity: Major
            Found in thirdparty/htmlparser2.js - About 2 hrs to fix

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              },{"./statement":70}],31:[function(require,module,exports){
              /*!
               * Copyright (C) 2017 Glayzzle (BSD3 License)
               * @authors https://github.com/glayzzle/php-parser/graphs/contributors
               * @url http://glayzzle.com
              Severity: Major
              Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
              thirdparty/php-parser.js on lines 2275..2296

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  if (ch === '\n' || ch === '\r') {
                    this.yylloc.last_line = ++this.yylineno;
                    this.yyprevcol = this.yylloc.last_column;
                    this.yylloc.last_column = 0;
                  } else {
              Severity: Major
              Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
              thirdparty/php-parser.js on lines 3019..3025

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              },{"./statement":70}],70:[function(require,module,exports){
              /*!
               * Copyright (C) 2017 Glayzzle (BSD3 License)
               * @authors https://github.com/glayzzle/php-parser/graphs/contributors
               * @url http://glayzzle.com
              Severity: Major
              Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
              thirdparty/php-parser.js on lines 1271..1293

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                if (ch === '\n' || ch === '\r') {
                  this.yylloc.last_line = ++this.yylineno;
                  this.yyprevcol = this.yylloc.last_column;
                  this.yylloc.last_column = 0;
                } else {
              Severity: Major
              Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
              thirdparty/php-parser.js on lines 3120..3126

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Function matchST_BACKQUOTE has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                matchST_BACKQUOTE: function() {
              
                  var ch = this.input();
                  if (ch === '$') {
                    ch = this.input();
              Severity: Major
              Found in thirdparty/php-parser.js - About 2 hrs to fix

                Function Python has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                define(function Python(require, exports, module) {
                    "use strict";
                
                    /**
                     * Get the visibility class based on the function name and type.
                Severity: Major
                Found in src/languages/Python.js - About 2 hrs to fix
                  Severity
                  Category
                  Status
                  Source
                  Language