Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Function OutlineManager has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

define(function OutlineManager(require, exports, module) {
    "use strict";

    /* beautify preserve:start *//* eslint-disable no-multi-spaces */
    var Mustache     = brackets.getModule("thirdparty/mustache/mustache");
Severity: Minor
Found in src/OutlineManager.js - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function Haxe has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

define(function Haxe(require, exports, module) {
    "use strict";

    /** @const {string} Placeholder for unnamed functions. */
    var UNNAMED_PLACEHOLDER = "function";
Severity: Major
Found in src/languages/Haxe.js - About 3 hrs to fix

    Function parseExprAtom has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
        // If a division operator appears in an expression position, the
        // tokenizer got confused, and we force it to read a regexp instead.
        if (this.type === types$1.slash) { this.readRegexp(); }
    
    
    Severity: Major
    Found in thirdparty/espree.js - About 3 hrs to fix

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

      },{"./sys":75}],46:[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 3 hrs to fix
      thirdparty/php-parser.js on lines 2392..2415

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

      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

      (function (EntityDecoderState) {
          EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
          EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
          EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
          EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
      Severity: Major
      Found in thirdparty/htmlparser2.js and 1 other location - About 3 hrs to fix
      thirdparty/htmlparser2.js on lines 1299..1305

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

      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

      (function (DocumentPosition) {
          DocumentPosition[DocumentPosition["DISCONNECTED"] = 1] = "DISCONNECTED";
          DocumentPosition[DocumentPosition["PRECEDING"] = 2] = "PRECEDING";
          DocumentPosition[DocumentPosition["FOLLOWING"] = 4] = "FOLLOWING";
          DocumentPosition[DocumentPosition["CONTAINS"] = 8] = "CONTAINS";
      Severity: Major
      Found in thirdparty/htmlparser2.js and 1 other location - About 3 hrs to fix
      thirdparty/htmlparser2.js on lines 2193..2199

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

      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}],75:[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 3 hrs to fix
      thirdparty/php-parser.js on lines 1688..1711

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

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

      define(function PHPLexer(require, exports, module) {
          "use strict";
      
          var phpParser = require("thirdparty/php-parser");
      
      
      Severity: Major
      Found in src/lexers/PHPLexer.js - About 3 hrs to fix

        Function 12 has 84 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"./comment":10,"./declaration":13,"./node":21,"./symbols":32}],12:[function(require,module,exports){
        'use strict'
        
        let pico = require('picocolors')
        
        
        Severity: Major
        Found in thirdparty/postcss-safe-parser.js - About 3 hrs to fix

          Function 7 has 84 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"./legacy.js":9,"./stringify.js":12}],7:[function(require,module,exports){
          "use strict";
          Object.defineProperty(exports, "__esModule", { value: true });
          exports.uniqueSort = exports.compareDocumentPosition = exports.DocumentPosition = exports.removeSubsets = void 0;
          var domhandler_1 = require("domhandler");
          Severity: Major
          Found in thirdparty/htmlparser2.js - About 3 hrs to fix

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

            },{"./node":53}],69:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./expression":31}],87:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./declaration":20}],59:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./statement":70}],36:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./declaration":20}],35:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./literal":46}],8:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./expression":31}],90:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770

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

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

            },{"./sys":75}],44:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./expression":31}],19:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2228..2251
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

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

            },{"./statement":70}],68:[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 12 other locations - About 3 hrs to fix
            thirdparty/php-parser.js on lines 581..604
            thirdparty/php-parser.js on lines 872..895
            thirdparty/php-parser.js on lines 1389..1412
            thirdparty/php-parser.js on lines 1412..1437
            thirdparty/php-parser.js on lines 1437..1462
            thirdparty/php-parser.js on lines 1644..1667
            thirdparty/php-parser.js on lines 2010..2034
            thirdparty/php-parser.js on lines 2251..2275
            thirdparty/php-parser.js on lines 2296..2319
            thirdparty/php-parser.js on lines 2415..2439
            thirdparty/php-parser.js on lines 2746..2770
            thirdparty/php-parser.js on lines 2825..2850

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

            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

            Severity
            Category
            Status
            Source
            Language