leonitousconforti/tinyburg

View on GitHub

Showing 824 of 824 total issues

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

/******/ (() => { // webpackBootstrap
/******/     "use strict";
var __webpack_exports__ = {};
/*!*****************************************************!*\
  !*** ./lib-esnext/scripts/install-run-rush-pnpm.js ***!
Severity: Major
Found in common/scripts/install-run-rush-pnpm.js and 1 other location - About 2 hrs to fix
common/scripts/install-run-rushx.js on lines 17..30

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

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

/******/ (() => { // webpackBootstrap
/******/     "use strict";
var __webpack_exports__ = {};
/*!*************************************************!*\
  !*** ./lib-esnext/scripts/install-run-rushx.js ***!
Severity: Major
Found in common/scripts/install-run-rushx.js and 1 other location - About 2 hrs to fix
common/scripts/install-run-rush-pnpm.js on lines 17..30

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

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

    {
        name: "Surfer paradise",
        type: FloorType.Lobby,
        hidden: true,
        character: "artmajor",
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 2 hrs to fix
packages/nucleus/src/data/floors.ts on lines 616..625

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

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

    {
        name: "Holiday Lobby",
        type: FloorType.Lobby,
        holiday: "The Holidays",
        character: "artmajor",
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 2 hrs to fix
packages/nucleus/src/data/floors.ts on lines 670..679

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

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

    {
        name: "Backdoor Icy Cart",
        type: FloorType.Lobby,
        character: "artmajor",
        holiday: "IceCream",
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 2 hrs to fix
packages/nucleus/src/data/floors.ts on lines 376..385

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

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

    {
        name: "torture chamber",
        type: FloorType.Lobby,
        hidden: true,
        character: "artmajor",
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 2 hrs to fix
packages/nucleus/src/data/floors.ts on lines 606..615

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

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

export const maskImage = (sourceImage: Image, mask: Image, threshold: number, crop = false): Image => {
    sourceImageGuard(mask);
    sourceImageGuard(sourceImage);
    uint8safeIntegerGuard(threshold);
    assert(mask.channels === 1, "Mask image must have exactly one channel");
Severity: Minor
Found in packages/doorman/src/image-operations/mask-image.ts - About 2 hrs to fix

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

        if (!config.authenticated) {
            logger.info("Proxying friend tower request through burn bot %s", config.burnBot.playerId);
            requester.playerId = config.burnBot.playerId;
            requester.playerSs = config.burnBot.playerSs;
        }
    Severity: Major
    Found in packages/nucleus/src/endpoints/friends.ts and 2 other locations - About 1 hr to fix
    packages/nucleus/src/endpoints/friends.ts on lines 127..131
    packages/nucleus/src/endpoints/friends.ts on lines 238..242

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

    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

        if (!config.authenticated) {
            logger.info("Proxying friend meta data request through burn bot %s", config.burnBot.playerId);
            requester.playerId = config.burnBot.playerId;
            requester.playerSs = config.burnBot.playerSs;
        }
    Severity: Major
    Found in packages/nucleus/src/endpoints/friends.ts and 2 other locations - About 1 hr to fix
    packages/nucleus/src/endpoints/friends.ts on lines 187..191
    packages/nucleus/src/endpoints/friends.ts on lines 238..242

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

    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

        if (!config.authenticated) {
            logger.info("Proxying friend tower request through burn bot %s", config.burnBot.playerId);
            requester.playerId = config.burnBot.playerId;
            requester.playerSs = config.burnBot.playerSs;
        }
    Severity: Major
    Found in packages/nucleus/src/endpoints/friends.ts and 2 other locations - About 1 hr to fix
    packages/nucleus/src/endpoints/friends.ts on lines 127..131
    packages/nucleus/src/endpoints/friends.ts on lines 187..191

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

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

    function _trimNpmrcFile(options) {
        const { sourceNpmrcPath, linesToPrepend, linesToAppend } = options;
        const combinedNpmrcFromCache = _combinedNpmrcMap.get(sourceNpmrcPath);
        if (combinedNpmrcFromCache !== undefined) {
            return combinedNpmrcFromCache;
    Severity: Minor
    Found in common/scripts/install-run.js - About 1 hr to fix

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

              animations: [
                  { element: "roof62snow", x: 70, y: 50, ftime: "0.25" },
                  { element: "roof62star", x: 105, y: 42, ftime: "0.15" },
                  { element: "roof62tree", x: 98, y: 89, ftime: "0.25" },
              ],
      Severity: Major
      Found in packages/nucleus/src/data/roofs.ts and 3 other locations - About 1 hr to fix
      packages/nucleus/src/data/floors.ts on lines 491..495
      packages/nucleus/src/data/floors.ts on lines 774..778
      packages/nucleus/src/data/roofs.ts on lines 418..422

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

      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

              animations: [
                  { element: "rockscreena", x: 70, y: 21, ftime: "0.5" },
                  { element: "rockscreenb", x: 97, y: 21, ftime: "0.3" },
                  { element: "rockscreenc", x: 126, y: 21, ftime: "0.6" },
              ],
      Severity: Major
      Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 1 hr to fix
      packages/nucleus/src/data/floors.ts on lines 774..778
      packages/nucleus/src/data/roofs.ts on lines 399..403
      packages/nucleus/src/data/roofs.ts on lines 418..422

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

      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

              animations: [
                  { element: "floor306_window", x: 0, y: 30, ftime: "0.125" },
                  { element: "floor306_candle", x: 119, y: 30, ftime: "0.125" },
                  { element: "floor306_tree", x: 89, y: 44, ftime: "0.45" },
              ],
      Severity: Major
      Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 1 hr to fix
      packages/nucleus/src/data/floors.ts on lines 491..495
      packages/nucleus/src/data/roofs.ts on lines 399..403
      packages/nucleus/src/data/roofs.ts on lines 418..422

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

      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

              animations: [
                  { element: "eye", x: 52, y: 46, ftime: "0.15" },
                  { element: "embers", x: 18, y: 52, ftime: "0.15" },
                  { element: "dragon_ball", x: 50, y: 96, ftime: "0.15" },
              ],
      Severity: Major
      Found in packages/nucleus/src/data/roofs.ts and 3 other locations - About 1 hr to fix
      packages/nucleus/src/data/floors.ts on lines 491..495
      packages/nucleus/src/data/floors.ts on lines 774..778
      packages/nucleus/src/data/roofs.ts on lines 399..403

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

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

          Effect.gen(function* () {
              const volumes: MobyApi.Volumes.Volumes = yield* MobyApi.Volumes.Volumes;
              const containers: MobyApi.Containers.Containers = yield* MobyApi.Containers.Containers;
              yield* Effect.logInfo("Populating shared emulator data volume...");
      
      

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

                    await architect
                        .cleanup({ emulatorContainer: emulatorContainer1 })
                        .pipe(Effect.provide(NodeContext.layer))
                        .pipe(Effect.provide(MobyApi.fromDockerHostEnvironmentVariable))
                        .pipe(Effect.runPromise);
        Severity: Major
        Found in packages/architect/src/index.test.ts and 1 other location - About 1 hr to fix
        packages/architect/src/index.test.ts on lines 51..55

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

        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

                    await architect
                        .cleanup({ emulatorContainer: emulatorContainer2 })
                        .pipe(Effect.provide(NodeContext.layer))
                        .pipe(Effect.provide(MobyApi.fromDockerHostEnvironmentVariable))
                        .pipe(Effect.runPromise);
        Severity: Major
        Found in packages/architect/src/index.test.ts and 1 other location - About 1 hr to fix
        packages/architect/src/index.test.ts on lines 43..47

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

        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

            {
                name: "Fun Fair Lobby",
                type: FloorType.Lobby,
                character: "artmajor",
                animations: [
        Severity: Major
        Found in packages/nucleus/src/data/floors.ts and 2 other locations - About 1 hr to fix
        packages/nucleus/src/data/floors.ts on lines 314..322
        packages/nucleus/src/data/floors.ts on lines 329..337

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

        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

            {
                name: "Neon Lobby",
                type: FloorType.Lobby,
                character: "artmajor",
                animations: [
        Severity: Major
        Found in packages/nucleus/src/data/floors.ts and 2 other locations - About 1 hr to fix
        packages/nucleus/src/data/floors.ts on lines 247..255
        packages/nucleus/src/data/floors.ts on lines 329..337

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

        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