Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

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

    Object.defineProperty(Node.prototype, "previousSibling", {
        /**
         * Same as {@link prev}.
         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
         */
Severity: Major
Found in thirdparty/htmlparser2.js and 2 other locations - About 1 hr to fix
thirdparty/htmlparser2.js on lines 703..716
thirdparty/htmlparser2.js on lines 814..827

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 69.

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

    Object.defineProperty(DataNode.prototype, "nodeValue", {
        /**
         * Same as {@link data}.
         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
         */
Severity: Major
Found in thirdparty/htmlparser2.js and 2 other locations - About 1 hr to fix
thirdparty/htmlparser2.js on lines 649..662
thirdparty/htmlparser2.js on lines 814..827

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 69.

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 4 locations. Consider refactoring.
Open

Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, false, 23, 4)
}
Severity: Major
Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
thirdparty/postcss-safe-parser.js on lines 1437..1441
thirdparty/postcss-safe-parser.js on lines 1449..1453
thirdparty/postcss-safe-parser.js on lines 1455..1459

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 69.

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 4 locations. Consider refactoring.
Open

Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, false, 52, 8)
}
Severity: Major
Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
thirdparty/postcss-safe-parser.js on lines 1437..1441
thirdparty/postcss-safe-parser.js on lines 1443..1447
thirdparty/postcss-safe-parser.js on lines 1449..1453

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 69.

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 4 locations. Consider refactoring.
Open

Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, true, 23, 4)
}
Severity: Major
Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
thirdparty/postcss-safe-parser.js on lines 1443..1447
thirdparty/postcss-safe-parser.js on lines 1449..1453
thirdparty/postcss-safe-parser.js on lines 1455..1459

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 69.

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

    Object.defineProperty(NodeWithChildren.prototype, "childNodes", {
        /**
         * Same as {@link children}.
         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
         */
Severity: Major
Found in thirdparty/htmlparser2.js and 2 other locations - About 1 hr to fix
thirdparty/htmlparser2.js on lines 649..662
thirdparty/htmlparser2.js on lines 703..716

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 69.

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 updateOutline has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function updateOutline(text) {
        var $ul = $outline.find("ul");
        $ul.empty();
        var promise;
        try {
Severity: Minor
Found in src/OutlineManager.js - About 1 hr to fix

    Function byteLength has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function byteLength (string, encoding) {
      if (Buffer.isBuffer(string)) {
        return string.length
      }
      if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
    Severity: Minor
    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

      Function Node has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var Node = /** @class */ (function () {
          function Node() {
              /** Parent of the node */
              this.parent = null;
              /** Previous sibling */
      Severity: Minor
      Found in thirdparty/htmlparser2.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                else if (this.state === State.InTagName ||
                    this.state === State.BeforeAttributeName ||
                    this.state === State.BeforeAttributeValue ||
                    this.state === State.AfterAttributeName ||
                    this.state === State.InAttributeName ||
        Severity: Critical
        Found in thirdparty/htmlparser2.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

              if (prevType.beforeExpr && prevType !== types$1._else &&
                  !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&
                  !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&
                  !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))
                { this.context.push(types.f_expr); }
          Severity: Critical
          Found in thirdparty/espree.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                if (
                  ch !== -1 &&
                  ch !== 0x24 /* $ */ &&
                  !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&
                  ch !== 0x2E /* . */ &&
            Severity: Critical
            Found in thirdparty/espree.js - About 1 hr to fix

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

                pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
                  var ch = state.current();
                  if (isClassSetReservedPunctuator(ch)) {
                    state.lastIntValue = ch;
                    state.advance();
              Severity: Major
              Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
              thirdparty/espree.js on lines 4979..4987

              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 68.

              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_eatSyntaxCharacter = function(state) {
                  var ch = state.current();
                  if (isSyntaxCharacter(ch)) {
                    state.lastIntValue = ch;
                    state.advance();
              Severity: Major
              Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
              thirdparty/espree.js on lines 5733..5741

              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 68.

              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 bidirectionalIndexOf has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                // Empty buffer means no match
                if (buffer.length === 0) return -1
              
                // Normalize byteOffset
              Severity: Minor
              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                Function 92 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{"./lexer/comments.js":92,"./lexer/initial.js":93,"./lexer/numbers.js":94,"./lexer/property.js":95,"./lexer/scripting.js":96,"./lexer/strings.js":97,"./lexer/tokens.js":98,"./lexer/utils.js":99}],92:[function(require,module,exports){
                /*!
                 * Copyright (C) 2017 Glayzzle (BSD3 License)
                 * @authors https://github.com/glayzzle/php-parser/graphs/contributors
                 * @url http://glayzzle.com
                Severity: Minor
                Found in thirdparty/php-parser.js - About 1 hr to fix

                  Function ST_DOUBLE_QUOTES has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    ST_DOUBLE_QUOTES: function() {
                      var ch;
                      while(this.offset < this.size) {
                        ch = this.input();
                        if (ch == '\\') {
                  Severity: Minor
                  Found in thirdparty/php-parser.js - About 1 hr to fix

                    Function toJSON has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      toJSON(_, inputs) {
                        let fixed = {}
                        let emitInputs = inputs == null
                        inputs = inputs || new Map()
                        let inputsNextIndex = 0
                    Severity: Minor
                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                      Function constructor has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        constructor(processor, css, opts) {
                          this.stringified = false
                          this.processed = false
                      
                          let root
                      Severity: Minor
                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                        Function jsx_parseElementAt has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            jsx_parseElementAt(startPos, startLoc) {
                              let node = this.startNodeAt(startPos, startLoc);
                              let children = [];
                              let openingElement = this.jsx_parseOpeningElementAt(startPos, startLoc);
                              let closingElement = null;
                        Severity: Minor
                        Found in thirdparty/espree.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language