leonitousconforti/tinyburg

View on GitHub

Showing 724 of 824 total issues

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

    {
        name: "Tool Shed Apts.",
        type: FloorType.Residential,
        contentOffer: true,
        animations: [{ element: "floor290_tool", x: 2, y: 42, ftime: "0.125" }],
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 40 mins to fix
packages/nucleus/src/data/floors.ts on lines 686..691
packages/nucleus/src/data/floors.ts on lines 692..697
packages/nucleus/src/data/floors.ts on lines 698..703

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

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

    {
        name: "Spaceship Apts.",
        type: FloorType.Residential,
        contentOffer: true,
        animations: [{ element: "floor293_planets", x: 65, y: 48, ftime: "0.125" }],
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 40 mins to fix
packages/nucleus/src/data/floors.ts on lines 680..685
packages/nucleus/src/data/floors.ts on lines 686..691
packages/nucleus/src/data/floors.ts on lines 692..697

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

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: "Splash Zone",
        type: FloorType.Entertainment,
        stockVar: 247,
        animations: [{ element: "pool", x: 78, y: 45, ftime: "0.25" }],
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 2 other locations - About 40 mins to fix
packages/nucleus/src/data/floors.ts on lines 518..523
packages/nucleus/src/data/floors.ts on lines 780..785

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

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

export class CloseFriends extends CloseHud {
    public constructor(emulatorClient: PromiseClient<typeof EmulatorController>) {
        super(emulatorClient, GameScreen.Friends, GameScreen.Hud);
    }
}
Severity: Major
Found in packages/doorman/src/actions/hud/menus/friends/close.ts and 6 other locations - About 40 mins to fix
packages/doorman/src/actions/hud/menus/bitbook/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/bitizens/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/raffle/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/rebuild/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/settings/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/upgrades/close.ts on lines 7..11

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

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

export class CloseUpgrades extends CloseHud {
    public constructor(emulatorClient: PromiseClient<typeof EmulatorController>) {
        super(emulatorClient, GameScreen.Upgrades, GameScreen.Hud);
    }
}
Severity: Major
Found in packages/doorman/src/actions/hud/menus/upgrades/close.ts and 6 other locations - About 40 mins to fix
packages/doorman/src/actions/hud/menus/bitbook/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/bitizens/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/friends/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/raffle/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/rebuild/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/settings/close.ts on lines 7..11

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

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

export class CLoseRebuild extends CloseHud {
    public constructor(emulatorClient: PromiseClient<typeof EmulatorController>) {
        super(emulatorClient, GameScreen.Rebuild, GameScreen.Hud);
    }
}
Severity: Major
Found in packages/doorman/src/actions/hud/menus/rebuild/close.ts and 6 other locations - About 40 mins to fix
packages/doorman/src/actions/hud/menus/bitbook/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/bitizens/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/friends/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/raffle/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/settings/close.ts on lines 7..11
packages/doorman/src/actions/hud/menus/upgrades/close.ts on lines 7..11

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

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

const rpcExports = {
    main: async () => {
        const instance = await new YourAgent().start();
        return instance.data;
    },
Severity: Minor
Found in packages/insight/examples/js/agent.js and 1 other location - About 40 mins to fix
packages/insight/examples/js-typed/agent.js on lines 42..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 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

const rpcExports = {
    main: async () => {
        const instance = await new YourAgent().start();
        return instance.data;
    },
Severity: Minor
Found in packages/insight/examples/js-typed/agent.js and 1 other location - About 40 mins to fix
packages/insight/examples/js/agent.js on lines 31..36

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-floor-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-mission-data.ts on lines 37..37
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-bitizen-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-mission-data.ts on lines 37..37
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-costume-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-mission-data.ts on lines 37..37
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-roof-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-mission-data.ts on lines 37..37

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-mission-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-bitbook-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-elevator-data.ts on lines 21..21
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-mission-data.ts on lines 37..37
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        if (serverHash === serverResponse.h) {
            logger.info("Hash verification passed");
            logger.info("Pulled friend tower data, starting unpacking...");
            return decompressSave(saveData);
        }
Severity: Minor
Found in packages/nucleus/src/endpoints/friends.ts and 1 other location - About 40 mins to fix
packages/nucleus/src/endpoints/snapshots.ts on lines 213..217

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

        const version = this.dependencies.AppUtilClass.method<Il2Cpp.String>("VersionString").invoke().content;
Severity: Major
Found in packages/insight/src/agents/get-elevator-data.ts and 6 other locations - About 40 mins to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 33..33
packages/insight/src/agents/get-bitizen-data.ts on lines 41..41
packages/insight/src/agents/get-costume-data.ts on lines 22..22
packages/insight/src/agents/get-floor-data.ts on lines 22..22
packages/insight/src/agents/get-mission-data.ts on lines 37..37
packages/insight/src/agents/get-roof-data.ts on lines 21..21

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

        if (serverHash === serverResponse.h) {
            logger.info("Hash verification passed");
            logger.info("Downloaded snapshot save data, starting unpacking...");
            return decompressSave(saveData);
        }
Severity: Minor
Found in packages/nucleus/src/endpoints/snapshots.ts and 1 other location - About 40 mins to fix
packages/nucleus/src/endpoints/friends.ts on lines 288..292

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

    const serverResponse = await postNetworkRequest<IUploadSave>({
        config,
        endpoint,
        hash,
        postData: metaData,
Severity: Minor
Found in packages/nucleus/src/endpoints/upload-save.ts and 2 other locations - About 35 mins to fix
packages/nucleus/src/endpoints/register-email.ts on lines 41..47
packages/nucleus/src/endpoints/snapshots.ts on lines 139..145

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

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

    const serverResponse = await postNetworkRequest<IRegisterEmail>({
        config,
        endpoint,
        hash,
        postData,
Severity: Minor
Found in packages/nucleus/src/endpoints/register-email.ts and 2 other locations - About 35 mins to fix
packages/nucleus/src/endpoints/snapshots.ts on lines 139..145
packages/nucleus/src/endpoints/upload-save.ts on lines 168..174

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

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

    const serverResponse = await postNetworkRequest<IPushSnapshot>({
        config,
        endpoint,
        hash,
        postData: metaData,
Severity: Minor
Found in packages/nucleus/src/endpoints/snapshots.ts and 2 other locations - About 35 mins to fix
packages/nucleus/src/endpoints/register-email.ts on lines 41..47
packages/nucleus/src/endpoints/upload-save.ts on lines 168..174

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

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