Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

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

var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Severity: Major
Found in thirdparty/htmlparser2.js and 3 other locations - About 40 mins to fix
thirdparty/htmlparser2.js on lines 1891..1893
thirdparty/htmlparser2.js on lines 2134..2136
thirdparty/htmlparser2.js on lines 4394..4396

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

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

var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Severity: Major
Found in thirdparty/htmlparser2.js and 3 other locations - About 40 mins to fix
thirdparty/htmlparser2.js on lines 2134..2136
thirdparty/htmlparser2.js on lines 2725..2727
thirdparty/htmlparser2.js on lines 4394..4396

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

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

  cloneBefore(overrides = {}) {
    let cloned = this.clone(overrides)
    this.parent.insertBefore(this, cloned)
    return cloned
  }
Severity: Minor
Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
thirdparty/postcss-safe-parser.js on lines 4339..4343

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

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

var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Severity: Major
Found in thirdparty/htmlparser2.js and 3 other locations - About 40 mins to fix
thirdparty/htmlparser2.js on lines 1891..1893
thirdparty/htmlparser2.js on lines 2725..2727
thirdparty/htmlparser2.js on lines 4394..4396

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

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

  cloneAfter(overrides = {}) {
    let cloned = this.clone(overrides)
    this.parent.insertAfter(this, cloned)
    return cloned
  }
Severity: Minor
Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
thirdparty/postcss-safe-parser.js on lines 4345..4349

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

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

var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Severity: Major
Found in thirdparty/htmlparser2.js and 3 other locations - About 40 mins to fix
thirdparty/htmlparser2.js on lines 1891..1893
thirdparty/htmlparser2.js on lines 2134..2136
thirdparty/htmlparser2.js on lines 2725..2727

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

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 _createListEntry has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function _createListEntry(name, args, vis, line, ch) {
Severity: Minor
Found in src/languages/Ruby.js - About 35 mins to fix

    Function Trait has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    var Trait = Declaration.extends(function Trait(name, ext, impl, body, location) {
    Severity: Minor
    Found in thirdparty/php-parser.js - About 35 mins to fix

      Function _getVisibilityClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function _getVisibilityClass(name, type, isPrivate, isStatic, isRegion) {
      Severity: Minor
      Found in src/languages/Haxe.js - About 35 mins to fix

        Function If has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        var If = Statement.extends(function If(test, body, alternate, shortForm, location) {
        Severity: Minor
        Found in thirdparty/php-parser.js - About 35 mins to fix

          Function TraitAlias has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          var TraitAlias = Node.extends(function TraitAlias(trait, method, as, flags, location) {
          Severity: Minor
          Found in thirdparty/php-parser.js - About 35 mins to fix

            Function _createListEntry has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                function _createListEntry(namespace, name, id, classes, indent) {
            Severity: Minor
            Found in src/languages/XML.js - About 35 mins to fix

              Function Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              var Error = Node.extends(function Error(message, token, line, expected, location) {
              Severity: Minor
              Found in thirdparty/php-parser.js - About 35 mins to fix

                Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                Severity: Minor
                Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                  Function compare has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                  Severity: Minor
                  Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                    Function bidirectionalIndexOf has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                    Severity: Minor
                    Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                      Function arrayIndexOf has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                      Severity: Minor
                      Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                        Function writeFloat has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function writeFloat (buf, value, offset, littleEndian, noAssert) {
                        Severity: Minor
                        Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                          Function writeDouble has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function writeDouble (buf, value, offset, littleEndian, noAssert) {
                          Severity: Minor
                          Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                            Function addConditionally has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            function addConditionally(obj, prop, tagName, where, recurse) {
                            Severity: Minor
                            Found in thirdparty/htmlparser2.js - About 35 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language