Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Function 95 has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"_process":118}],95:[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 114 has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],114:[function(require,module,exports){
    /*!
     * Defines a list of helper functions for parsing
     * Copyright (C) 2017 Glayzzle (BSD3 License)
     * @authors https://github.com/glayzzle/php-parser/graphs/contributors
    Severity: Major
    Found in thirdparty/php-parser.js - About 2 hrs to fix

      Function XMLParser has 62 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      define(function XMLParser(require, exports, module) {
          "use strict";
      
          var htmlparser = require("thirdparty/htmlparser2");
          var Promise = require("thirdparty/promise");
      Severity: Major
      Found in src/lexers/XMLParser.js - About 2 hrs to fix

        Function matchST_HEREDOC has 62 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          matchST_HEREDOC: function() {
            /** edge case : empty here doc **/
            var ch = this.input();
            if (this.isDOC_MATCH()) {
              this.consume(this.heredoc_label.length - 1);
        Severity: Major
        Found in thirdparty/php-parser.js - About 2 hrs to fix

          Function read_scalar has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            read_scalar: function() {
              if (this.is('T_MAGIC_CONST')) {
                return this.get_magic_constant();
              } else {
                switch(this.token) {
          Severity: Major
          Found in thirdparty/php-parser.js - About 2 hrs to fix

            Function CoffeeScript has 62 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            define(function CoffeeScript(require, exports, module) {
                "use strict";
            
                /** @const {string} Placeholder for unnamed functions. */
                var UNNAMED_PLACEHOLDER = "→";
            Severity: Major
            Found in src/languages/CoffeeScript.js - About 2 hrs to fix

              Function Jade has 62 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              define(function Jade(require, exports, module) {
                  "use strict";
              
                  var Editor = brackets.getModule("editor/Editor").Editor;
              
              
              Severity: Major
              Found in src/languages/Jade.js - About 2 hrs to fix

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

                      if (typeof start.offset === 'number') {
                        let pos = this.fromOffset(start.offset)
                        line = pos.line
                        column = pos.col
                      } else {
                Severity: Major
                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                thirdparty/postcss-safe-parser.js on lines 2971..2978

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

                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

                      if (typeof end.offset === 'number') {
                        let pos = this.fromOffset(end.offset)
                        endLine = pos.line
                        endColumn = pos.col
                      } else {
                Severity: Major
                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                thirdparty/postcss-safe-parser.js on lines 2963..2970

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

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

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

                  function utf8Slice (buf, start, end) {
                    end = Math.min(buf.length, end)
                    var res = []
                  
                    var i = start
                  Severity: Major
                  Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                    Function 26 has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{"buffer":3,"fs":2,"path":2,"source-map-js":2}],26:[function(require,module,exports){
                    (function (process){(function (){
                    'use strict'
                    
                    let NoWorkResult = require('./no-work-result')
                    Severity: Major
                    Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                      Function 99 has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        },{"timers":3}],3:[function(require,module,exports){
                        (function (setImmediate,clearImmediate){(function (){
                        var nextTick = require('process/browser.js').nextTick;
                        var apply = Function.prototype.apply;
                        var slice = Array.prototype.slice;
                        Severity: Major
                        Found in thirdparty/promise.js - About 2 hrs to fix

                          Function 13 has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          },{"dom-serializer":2,"domelementtype":3,"domhandler":4}],13:[function(require,module,exports){
                          "use strict";
                          Object.defineProperty(exports, "__esModule", { value: true });
                          exports.prevElementSibling = exports.nextElementSibling = exports.getName = exports.hasAttrib = exports.getAttributeValue = exports.getSiblings = exports.getParent = exports.getChildren = void 0;
                          var domhandler_1 = require("domhandler");
                          Severity: Major
                          Found in thirdparty/htmlparser2.js - About 2 hrs to fix

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

                                    if (this.options.ecmaVersion >= 9) {
                                      if (this.type === types$1._in) {
                                        if (awaitAt > -1) { this.unexpected(awaitAt); }
                                      } else { node.await = awaitAt > -1; }
                                    }
                            Severity: Major
                            Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                            thirdparty/espree.js on lines 1826..1830

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

                            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 (this.options.ecmaVersion >= 9) {
                                    if (this.type === types$1._in) {
                                      if (awaitAt > -1) { this.unexpected(awaitAt); }
                                    } else { node.await = awaitAt > -1; }
                                  }
                            Severity: Major
                            Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                            thirdparty/espree.js on lines 1812..1816

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

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

                              generateString() {
                                this.css = ''
                                this.map = new SourceMapGenerator({ file: this.outputFile() })
                            
                                let line = 1
                            Severity: Major
                            Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                              Function toAssignable has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
                                  if (this.options.ecmaVersion >= 6 && node) {
                                    switch (node.type) {
                                    case "Identifier":
                                      if (this.inAsync && node.name === "await")
                              Severity: Major
                              Found in thirdparty/espree.js - About 2 hrs to fix

                                Function translate has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    translate(token, extra) {
                                
                                        const type = token.type,
                                            tt = this._acornTokTypes;
                                
                                
                                Severity: Major
                                Found in thirdparty/espree.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language