Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Function 2 has 255 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./xhtml":2,"acorn":3}],2:[function(require,module,exports){
module.exports = {
  quot: '\u0022',
  amp: '&',
  apos: '\u0027',
Severity: Major
Found in thirdparty/espree.js - About 1 day to fix

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

            if (ch === '{') {
              this.begin('ST_LOOKING_FOR_VARNAME');
              if (this.yytext.length > 2) {
                this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES, 2);
                this.unput(2);
    Severity: Major
    Found in thirdparty/php-parser.js and 1 other location - About 1 day to fix
    thirdparty/php-parser.js on lines 4095..4115

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

    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 === '{') {
              this.begin('ST_LOOKING_FOR_VARNAME');
              if (this.yytext.length > 2) {
                this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES, 2);
                this.unput(2);
    Severity: Major
    Found in thirdparty/php-parser.js and 1 other location - About 1 day to fix
    thirdparty/php-parser.js on lines 4018..4038

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

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

    },{}],33:[function(require,module,exports){
    'use strict'
    
    const SINGLE_QUOTE = "'".charCodeAt(0)
    const DOUBLE_QUOTE = '"'.charCodeAt(0)
    Severity: Major
    Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

      Function 2 has 229 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],2:[function(require,module,exports){
      /*!
       * Copyright (C) 2017 Glayzzle (BSD3 License)
       * @authors https://github.com/glayzzle/php-parser/graphs/contributors
       * @url http://gla*yzzle.com
      Severity: Major
      Found in thirdparty/php-parser.js - About 1 day to fix

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

        },{"./at-rule":9,"./comment":10,"./declaration":13,"./input":16,"./previous-map":25,"./root":28,"./rule":29}],16:[function(require,module,exports){
        'use strict'
        
        let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
        let { fileURLToPath, pathToFileURL } = require('url')
        Severity: Major
        Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

          Function JSParser has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring.
          Open

          define(function JSParser(require, exports, module) {
              "use strict";
          
              var espree = require("thirdparty/espree");
          
          
          Severity: Minor
          Found in src/lexers/JSParser.js - About 1 day 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

          File promise.js has 511 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**!
           * Promise Polyfill version 8.3.0
           * (browserified with Browserify version 17.0.0)
           *
           * MIT License
          Severity: Major
          Found in thirdparty/promise.js - About 1 day to fix

            Function tokenizer has 205 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            module.exports = function tokenizer(input, options = {}) {
              let css = input.css.valueOf()
              let ignore = options.ignoreErrors
            
              let code, next, quote, content, escape
            Severity: Major
            Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

              Function 2 has 199 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{}],2:[function(require,module,exports){
              "use strict";
              var __assign = (this && this.__assign) || function () {
                  __assign = Object.assign || function(t) {
                      for (var s, i = 1, n = arguments.length; i < n; i++) {
              Severity: Major
              Found in thirdparty/htmlparser2.js - About 7 hrs to fix

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 144..154
                thirdparty/htmlparser2.js on lines 421..431
                thirdparty/htmlparser2.js on lines 1399..1409
                thirdparty/htmlparser2.js on lines 2111..2121
                thirdparty/htmlparser2.js on lines 3086..3096

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

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 144..154
                thirdparty/htmlparser2.js on lines 1399..1409
                thirdparty/htmlparser2.js on lines 2111..2121
                thirdparty/htmlparser2.js on lines 3086..3096
                thirdparty/htmlparser2.js on lines 4371..4381

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

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 144..154
                thirdparty/htmlparser2.js on lines 421..431
                thirdparty/htmlparser2.js on lines 2111..2121
                thirdparty/htmlparser2.js on lines 3086..3096
                thirdparty/htmlparser2.js on lines 4371..4381

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

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 144..154
                thirdparty/htmlparser2.js on lines 421..431
                thirdparty/htmlparser2.js on lines 1399..1409
                thirdparty/htmlparser2.js on lines 2111..2121
                thirdparty/htmlparser2.js on lines 4371..4381

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

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 144..154
                thirdparty/htmlparser2.js on lines 421..431
                thirdparty/htmlparser2.js on lines 1399..1409
                thirdparty/htmlparser2.js on lines 3086..3096
                thirdparty/htmlparser2.js on lines 4371..4381

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

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

                var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                    if (k2 === undefined) k2 = k;
                    var desc = Object.getOwnPropertyDescriptor(m, k);
                    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                      desc = { enumerable: true, get: function() { return m[k]; } };
                Severity: Major
                Found in thirdparty/htmlparser2.js and 5 other locations - About 7 hrs to fix
                thirdparty/htmlparser2.js on lines 421..431
                thirdparty/htmlparser2.js on lines 1399..1409
                thirdparty/htmlparser2.js on lines 2111..2121
                thirdparty/htmlparser2.js on lines 3086..3096
                thirdparty/htmlparser2.js on lines 4371..4381

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

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

                var EntityDecoder = /** @class */ (function () {
                    function EntityDecoder(
                    /** The tree used to decode entities. */
                    decodeTree,
                    /**
                Severity: Major
                Found in thirdparty/htmlparser2.js - About 7 hrs to fix

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

                    walkRules(selector, callback) {
                      if (!callback) {
                        callback = selector
                  
                        return this.walk((child, i) => {
                  Severity: Major
                  Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                  thirdparty/postcss-safe-parser.js on lines 2553..2574
                  thirdparty/postcss-safe-parser.js on lines 2584..2605

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

                  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

                    walkDecls(prop, callback) {
                      if (!callback) {
                        callback = prop
                        return this.walk((child, i) => {
                          if (child.type === 'decl') {
                  Severity: Major
                  Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                  thirdparty/postcss-safe-parser.js on lines 2553..2574
                  thirdparty/postcss-safe-parser.js on lines 2607..2629

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

                  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

                    walkAtRules(name, callback) {
                      if (!callback) {
                        callback = name
                        return this.walk((child, i) => {
                          if (child.type === 'atrule') {
                  Severity: Major
                  Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                  thirdparty/postcss-safe-parser.js on lines 2584..2605
                  thirdparty/postcss-safe-parser.js on lines 2607..2629

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

                  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