Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Function 105 has 187 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],105:[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 7 hrs to fix

    Function parser has 186 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var parser = function(lexer, ast) {
      this.lexer = lexer;
      this.ast = ast;
      this.tok = lexer.tok;
      this.EOF = lexer.EOF;
    Severity: Major
    Found in thirdparty/php-parser.js - About 7 hrs to fix

      Function 110 has 182 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],110:[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 7 hrs to fix

        Function nextToken has 177 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function nextToken(opts) {
            if (returned.length) return returned.pop()
            if (pos >= length) return
        
            let ignoreUnclosed = opts ? opts.ignoreUnclosed : false
        Severity: Major
        Found in thirdparty/postcss-safe-parser.js - About 7 hrs to fix

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

              if (ch === '$') {
                ch = this.input();
                if (ch === '{') {
                  this.begin('ST_LOOKING_FOR_VARNAME');
                  return this.tok.T_DOLLAR_OPEN_CURLY_BRACES;
          Severity: Major
          Found in thirdparty/php-parser.js and 1 other location - About 6 hrs to fix
          thirdparty/php-parser.js on lines 3988..4005

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

          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 (ch === '$') {
                ch = this.input();
                if (ch === '{') {
                  this.begin('ST_LOOKING_FOR_VARNAME');
                  return this.tok.T_DOLLAR_OPEN_CURLY_BRACES;
          Severity: Major
          Found in thirdparty/php-parser.js and 1 other location - About 6 hrs to fix
          thirdparty/php-parser.js on lines 4065..4082

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

          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 OutlineManager has 169 lines of code (exceeds 25 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: Major
          Found in src/OutlineManager.js - About 6 hrs to fix

            Function espree has 169 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var espree = () => Parser => {
                const tokTypes = Object.assign({}, Parser.acorn.tokTypes);
            
                if (Parser.acornJsx) {
                    Object.assign(tokTypes, Parser.acornJsx.tokTypes);
            Severity: Major
            Found in thirdparty/espree.js - About 6 hrs to fix

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

                rawBeforeDecl(root, node) {
                  let value
                  root.walkDecls(i => {
                    if (typeof i.raws.before !== 'undefined') {
                      value = i.raws.before
              Severity: Major
              Found in thirdparty/postcss-safe-parser.js and 1 other location - About 6 hrs to fix
              thirdparty/postcss-safe-parser.js on lines 5930..5947

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

              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

                rawBeforeComment(root, node) {
                  let value
                  root.walkComments(i => {
                    if (typeof i.raws.before !== 'undefined') {
                      value = i.raws.before
              Severity: Major
              Found in thirdparty/postcss-safe-parser.js and 1 other location - About 6 hrs to fix
              thirdparty/postcss-safe-parser.js on lines 5949..5966

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

              define({
                  HEADER_TITLE: "Outline",
              
                  TOOLBAR_ICON_TOOLTIP: "Toggle Outline",
              
              
              Severity: Major
              Found in nls/root/strings.js and 2 other locations - About 6 hrs to fix
              nls/de/strings.js on lines 1..38
              nls/es/strings.js on lines 1..38

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

              define({
                  HEADER_TITLE: "Outline",
              
                  TOOLBAR_ICON_TOOLTIP: "Outline umschalten",
              
              
              Severity: Major
              Found in nls/de/strings.js and 2 other locations - About 6 hrs to fix
              nls/es/strings.js on lines 1..38
              nls/root/strings.js on lines 1..38

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

              define({
                  HEADER_TITLE: "Outline",
              
                  TOOLBAR_ICON_TOOLTIP: "Mostrar/Ocultar Outline",
              
              
              Severity: Major
              Found in nls/es/strings.js and 2 other locations - About 6 hrs to fix
              nls/de/strings.js on lines 1..38
              nls/root/strings.js on lines 1..38

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

              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

              Consider simplifying this complex logical expression.
              Open

                      } else if (type === tt.semi || type === tt.comma ||
                               type === tt.parenL || type === tt.parenR ||
                               type === tt.braceL || type === tt.braceR ||
                               type === tt.dot || type === tt.bracketL ||
                               type === tt.colon || type === tt.question ||
              Severity: Critical
              Found in thirdparty/espree.js - About 6 hrs to fix

                Function 118 has 149 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{"../../is-buffer/index.js":1,"./ast":2,"./lexer":91,"./parser":100,"./tokens":116}],118:[function(require,module,exports){
                // shim for using process in browser
                var process = module.exports = {};
                
                // cached from whatever global is present so that test runners that stub it
                Severity: Major
                Found in thirdparty/php-parser.js - About 5 hrs to fix

                  Function 1 has 149 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.promise = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
                  // shim for using process in browser
                  var process = module.exports = {};
                  
                  // cached from whatever global is present so that test runners that stub it
                  Severity: Major
                  Found in thirdparty/promise.js - About 5 hrs to fix

                    Function 36 has 149 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{}],36:[function(require,module,exports){
                    // shim for using process in browser
                    var process = module.exports = {};
                    
                    // cached from whatever global is present so that test runners that stub it
                    Severity: Major
                    Found in thirdparty/postcss-safe-parser.js - About 5 hrs to fix

                      Function 4 has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{}],4:[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 5 hrs to fix

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

                        var __assign = (this && this.__assign) || function () {
                            __assign = Object.assign || function(t) {
                                for (var s, i = 1, n = arguments.length; i < n; i++) {
                                    s = arguments[i];
                                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                        Severity: Major
                        Found in thirdparty/htmlparser2.js and 1 other location - About 5 hrs to fix
                        thirdparty/htmlparser2.js on lines 603..613

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

                        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 __assign = (this && this.__assign) || function () {
                            __assign = Object.assign || function(t) {
                                for (var s, i = 1, n = arguments.length; i < n; i++) {
                                    s = arguments[i];
                                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                        Severity: Major
                        Found in thirdparty/htmlparser2.js and 1 other location - About 5 hrs to fix
                        thirdparty/htmlparser2.js on lines 133..143

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

                        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