Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Function fill has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Buffer.prototype.fill = function fill (val, start, end, encoding) {
  // Handle string cases:
  if (typeof val === 'string') {
    if (typeof start === 'string') {
      encoding = start
Severity: Major
Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

    Function 16 has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],16:[function(require,module,exports){
    "use strict";
    var __importDefault = (this && this.__importDefault) || function (mod) {
        return (mod && mod.__esModule) ? mod : { "default": mod };
    };
    Severity: Major
    Found in thirdparty/htmlparser2.js - About 2 hrs to fix

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

        pp$1.regexp_eatCControlLetter = function(state) {
          var start = state.pos;
          if (state.eat(0x63 /* c */)) {
            if (this.regexp_eatControlLetter(state)) {
              return true
      Severity: Major
      Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
      thirdparty/espree.js on lines 4916..4925

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

      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_eatReverseSolidusAtomEscape = function(state) {
          var start = state.pos;
          if (state.eat(0x5C /* \ */)) {
            if (this.regexp_eatAtomEscape(state)) {
              return true
      Severity: Major
      Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
      thirdparty/espree.js on lines 5189..5198

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

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

      },{}],93:[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 12 has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"domhandler":4}],12:[function(require,module,exports){
        "use strict";
        var __importDefault = (this && this.__importDefault) || function (mod) {
            return (mod && mod.__esModule) ? mod : { "default": mod };
        };
        Severity: Major
        Found in thirdparty/htmlparser2.js - About 2 hrs to fix

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

          var __exportStar = (this && this.__exportStar) || function(m, exports) {
              for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
          };
          Severity: Major
          Found in thirdparty/htmlparser2.js and 1 other location - About 2 hrs to fix
          thirdparty/htmlparser2.js on lines 432..434

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

          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

          var __exportStar = (this && this.__exportStar) || function(m, exports) {
              for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
          };
          Severity: Major
          Found in thirdparty/htmlparser2.js and 1 other location - About 2 hrs to fix
          thirdparty/htmlparser2.js on lines 1410..1412

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

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

              function _visit(node, name, level) {
                  if (node.type === "ClassDeclaration") {
                      return {
                          name: node.id.name,
                          line: node.loc.start.line,
          Severity: Minor
          Found in src/lexers/JSParser.js - About 2 hrs to fix

            Function unput has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            lexer.prototype.unput = function(size) {
              if (size === 1) {
                // 1 char unput (most cases)
                this.offset --;
                if (this._input[this.offset] === '\n' && this._input[this.offset - 1] === '\r') {
            Severity: Minor
            Found in thirdparty/php-parser.js - About 2 hrs to fix

              Function runAsync has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                async runAsync() {
                  this.plugin = 0
                  for (let i = 0; i < this.plugins.length; i++) {
                    let plugin = this.plugins[i]
                    let promise = this.runOnRoot(plugin)
              Severity: Minor
              Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                Function visitTick has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  visitTick(stack) {
                    let visit = stack[stack.length - 1]
                    let { node, visitors } = visit
                
                    if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
                Severity: Minor
                Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                      } else if (!isPattern && !containsEsc &&
                                 this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" &&
                                 (prop.key.name === "get" || prop.key.name === "set") &&
                                 (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
                        if (isGenerator || isAsync) { this.unexpected(); }
                  Severity: Critical
                  Found in thirdparty/espree.js - About 2 hrs to fix

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

                        function compare(a, b) {
                            if (b === UNNAMED_PLACEHOLDER) {
                                return -1;
                            }
                            if (a === UNNAMED_PLACEHOLDER) {
                    Severity: Major
                    Found in src/languages/CoffeeScript.js and 1 other location - About 2 hrs to fix
                    src/languages/Haxe.js on lines 116..130

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

                    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

                        function compare(a, b) {
                            if (b === UNNAMED_PLACEHOLDER) {
                                return -1;
                            }
                            if (a === UNNAMED_PLACEHOLDER) {
                    Severity: Major
                    Found in src/languages/Haxe.js and 1 other location - About 2 hrs to fix
                    src/languages/CoffeeScript.js on lines 78..92

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

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

                      is_HEREDOC: function() {
                        var revert = this.offset;
                        if (
                          this._input[this.offset - 1] === '<'
                          && this._input[this.offset] === '<'
                    Severity: Minor
                    Found in thirdparty/php-parser.js - About 1 hr to fix

                      Function arrayIndexOf has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                        var indexSize = 1
                        var arrLength = arr.length
                        var valLength = val.length
                      
                      
                      Severity: Minor
                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                        Function 15 has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{"./container":11}],15:[function(require,module,exports){
                        'use strict'
                        
                        let Declaration = require('./declaration')
                        let PreviousMap = require('./previous-map')
                        Severity: Minor
                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                          Function 18 has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          },{"./container":11,"./document":14,"./map-generator":19,"./parse":22,"./result":27,"./root":28,"./stringify":31,"./symbols":32,"./warn-once":34,"_process":36}],18:[function(require,module,exports){
                          'use strict'
                          
                          let list = {
                            comma(string) {
                          Severity: Minor
                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                            Function onToken has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                onToken(token, extra) {
                            
                                    const tt = this._acornTokTypes,
                                        tokens = extra.tokens,
                                        templateTokens = this._tokens;
                            Severity: Minor
                            Found in thirdparty/espree.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language