packages/babel-types/src/builders/generated/index.js

Summary

Maintainability
D
3 days
Test Coverage

File index.js has 1053 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// @flow
/*
 * This file is auto-generated! Do not modify it directly.
 * To re-generate run 'make build'
 */
Severity: Major
Found in packages/babel-types/src/builders/generated/index.js - About 2 days to fix

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

    export function NumberLiteral(...args: Array<any>): Object {
      console.trace(
        "The node type NumberLiteral has been renamed to NumericLiteral",
      );
      return NumberLiteral("NumberLiteral", ...args);
    Severity: Major
    Found in packages/babel-types/src/builders/generated/index.js and 3 other locations - About 50 mins to fix
    packages/babel-types/src/builders/generated/index.js on lines 1043..1046
    packages/babel-types/src/builders/generated/index.js on lines 1048..1051
    packages/babel-types/src/builders/generated/index.js on lines 1053..1058

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

    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

    export function SpreadProperty(...args: Array<any>): Object {
      console.trace(
        "The node type SpreadProperty has been renamed to SpreadElement",
      );
      return SpreadProperty("SpreadProperty", ...args);
    Severity: Major
    Found in packages/babel-types/src/builders/generated/index.js and 3 other locations - About 50 mins to fix
    packages/babel-types/src/builders/generated/index.js on lines 1036..1041
    packages/babel-types/src/builders/generated/index.js on lines 1043..1046
    packages/babel-types/src/builders/generated/index.js on lines 1048..1051

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

    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

    export function RegexLiteral(...args: Array<any>): Object {
      console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
      return RegexLiteral("RegexLiteral", ...args);
    }
    Severity: Major
    Found in packages/babel-types/src/builders/generated/index.js and 3 other locations - About 50 mins to fix
    packages/babel-types/src/builders/generated/index.js on lines 1036..1041
    packages/babel-types/src/builders/generated/index.js on lines 1048..1051
    packages/babel-types/src/builders/generated/index.js on lines 1053..1058

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

    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

    export function RestProperty(...args: Array<any>): Object {
      console.trace("The node type RestProperty has been renamed to RestElement");
      return RestProperty("RestProperty", ...args);
    }
    Severity: Major
    Found in packages/babel-types/src/builders/generated/index.js and 3 other locations - About 50 mins to fix
    packages/babel-types/src/builders/generated/index.js on lines 1036..1041
    packages/babel-types/src/builders/generated/index.js on lines 1043..1046
    packages/babel-types/src/builders/generated/index.js on lines 1053..1058

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

    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

    There are no issues that match your filters.

    Category
    Status