Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

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

  matchST_DOUBLE_QUOTES: function() {

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

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

    },{"entities/lib/decode.js":14}],24:[function(require,module,exports){
    "use strict";
    var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
        if (k2 === undefined) k2 = k;
        var desc = Object.getOwnPropertyDescriptor(m, k);
    Severity: Major
    Found in thirdparty/htmlparser2.js - About 2 hrs to fix

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

            if (ch === '\n' || ch === '\r') {
              ch = this.input();
              if (this.isDOC_MATCH()) {
                this.unput(1).popState();
                this.appendToken(
      Severity: Major
      Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
      thirdparty/php-parser.js on lines 3869..3880

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

      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') {
              ch = this.input();
              if (this.isDOC_MATCH()) {
                this.unput(1).popState();
                this.appendToken(
      Severity: Major
      Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
      thirdparty/php-parser.js on lines 3904..3954

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

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

        read_expr: function() {
          var result = this.node();
          var expr = this.read_expr_item();
          // binary operations
          if (this.token === '|')
      Severity: Major
      Found in thirdparty/php-parser.js - About 2 hrs to fix

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

        },{"./sys":75}],25:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./statement":70}],7:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./node":53}],24:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./declaration":20}],43:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./node":53}],45:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

        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 Error = Node.extends(function Error(message, token, line, expected, location) {
          Node.apply(this, [KIND, location]);
          this.message = message;
          this.token = token;
          this.line = line;
        Severity: Major
        Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
        thirdparty/php-parser.js on lines 1539..1545

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

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

        },{"./expression":31}],49:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./operation":57}],83:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129

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

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

        },{"./operation":57}],63:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2616..2637

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

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

        },{"./literal":46}],55:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1576..1597
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

        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

          consume_LNUM: function() {
            while(this.offset < this.size) {
              var ch = this.input();
              if (!this.is_NUM()) {
                if (ch) this.unput(1);
        Severity: Major
        Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
        thirdparty/php-parser.js on lines 3506..3515

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

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

        },{"./statement":70}],41:[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 9 other locations - About 2 hrs to fix
        thirdparty/php-parser.js on lines 560..581
        thirdparty/php-parser.js on lines 1059..1080
        thirdparty/php-parser.js on lines 1080..1101
        thirdparty/php-parser.js on lines 1623..1644
        thirdparty/php-parser.js on lines 1667..1688
        thirdparty/php-parser.js on lines 1758..1779
        thirdparty/php-parser.js on lines 1915..1936
        thirdparty/php-parser.js on lines 2108..2129
        thirdparty/php-parser.js on lines 2616..2637

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

        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

          consume_HNUM: function() {
            while(this.offset < this.size) {
              var ch = this.input();
              if (!this.is_HEX()) {
                if (ch) this.unput(1);
        Severity: Major
        Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
        thirdparty/php-parser.js on lines 3517..3526

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

        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 If = Statement.extends(function If(test, body, alternate, shortForm, location) {
          Statement.apply(this, [KIND, location]);
          this.test = test;
          this.body = body;
          this.alternate = alternate;
        Severity: Major
        Found in thirdparty/php-parser.js and 1 other location - About 2 hrs to fix
        thirdparty/php-parser.js on lines 1215..1221

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

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

          consume_NUM: function() {
            var ch = this.yytext[0];
            var hasPoint = this.yytext[0] === '.';
            if (ch === '0') {
              ch = this.input();
        Severity: Major
        Found in thirdparty/php-parser.js - About 2 hrs to fix
          Severity
          Category
          Status
          Source
          Language