leonitousconforti/tinyburg

View on GitHub

Showing 724 of 824 total issues

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

/******/     (() => {
/******/         __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/     })();
Severity: Major
Found in common/scripts/install-run-rush.js and 1 other location - About 1 hr to fix
common/scripts/install-run.js on lines 259..261

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

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

const rpcExports: ICostumeAgentExports = {
    main: async () => {
        const instance = await new GetCostumeData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-costume-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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

const rpcExports: IMissionAgentExports = {
    main: async () => {
        const instance = await new GetMissionData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-mission-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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

const rpcExports: IRoofAgentExports = {
    main: async () => {
        const instance = await new GetRoofData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-roof-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67

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

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: "torch", x: 2, y: 27, ftime: "0.13" },
            { element: "torch", x: 24, y: 27, ftime: "0.13", startframe: 4 },
        ],
Severity: Major
Found in packages/nucleus/src/data/elevators.ts and 3 other locations - About 1 hr to fix
packages/nucleus/src/data/floors.ts on lines 407..410
packages/nucleus/src/data/floors.ts on lines 481..484
packages/nucleus/src/data/roofs.ts on lines 102..105

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

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

const rpcExports: IFloorAgentExports = {
    main: async () => {
        const instance = await new GetFloorData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-floor-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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: "watch", x: 65, y: 24, ftime: "1" },
            { element: "tvcar", x: 9, y: 20, ftime: "0.2", startframe: 5 },
        ],
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 1 hr to fix
packages/nucleus/src/data/elevators.ts on lines 51..54
packages/nucleus/src/data/floors.ts on lines 481..484
packages/nucleus/src/data/roofs.ts on lines 102..105

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

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

const rpcExports: IElevatorAgentExports = {
    main: async () => {
        const instance = await new GetElevatorData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-elevator-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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: "waterlamp", x: 54, y: 45, ftime: "0.25" },
            { element: "waterlamp", x: 113, y: 45, ftime: "0.25", startframe: 3 },
        ],
Severity: Major
Found in packages/nucleus/src/data/floors.ts and 3 other locations - About 1 hr to fix
packages/nucleus/src/data/elevators.ts on lines 51..54
packages/nucleus/src/data/floors.ts on lines 407..410
packages/nucleus/src/data/roofs.ts on lines 102..105

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

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

const rpcExports: IBitbookAgentExports = {
    main: async () => {
        const instance = await new GetBitbookData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-bitbook-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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

const rpcExports: IBitizenAgentExports = {
    main: async () => {
        const instance = await new GetBitizenData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-bitizen-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-pet-data.ts on lines 62..67
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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: "redlight", x: 93, y: 75, ftime: "1" },
            { element: "redlight", x: 136, y: 0, ftime: "1", startframe: 2 },
        ],
Severity: Major
Found in packages/nucleus/src/data/roofs.ts and 3 other locations - About 1 hr to fix
packages/nucleus/src/data/elevators.ts on lines 51..54
packages/nucleus/src/data/floors.ts on lines 407..410
packages/nucleus/src/data/floors.ts on lines 481..484

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

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: "Coffin elevator",
        yoffset: "-15",
        yDoorOffset: "5",
        hidden: true,
Severity: Major
Found in packages/nucleus/src/data/elevators.ts and 1 other location - About 1 hr to fix
packages/nucleus/src/data/elevators.ts on lines 107..114

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

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: "Grim elevator",
        yoffset: "-6",
        xDoorOffset: "-3",
        hidden: true,
Severity: Major
Found in packages/nucleus/src/data/elevators.ts and 1 other location - About 1 hr to fix
packages/nucleus/src/data/elevators.ts on lines 115..122

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

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

const rpcExports: IPetAgentExports = {
    main: async () => {
        const instance = await new GetPetData().start();
        return instance.transformToSourceCode();
    },
Severity: Major
Found in packages/insight/src/agents/get-pet-data.ts and 7 other locations - About 1 hr to fix
packages/insight/src/agents/get-bitbook-data.ts on lines 85..90
packages/insight/src/agents/get-bitizen-data.ts on lines 169..174
packages/insight/src/agents/get-costume-data.ts on lines 54..59
packages/insight/src/agents/get-elevator-data.ts on lines 73..78
packages/insight/src/agents/get-floor-data.ts on lines 118..123
packages/insight/src/agents/get-mission-data.ts on lines 116..121
packages/insight/src/agents/get-roof-data.ts on lines 68..73

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

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: "Beach barbecue",
        type: FloorType.Lobby,
        holiday: "Summer",
        character: "artmajor",
Severity: Minor
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 55 mins to fix
packages/nucleus/src/data/floors.ts on lines 640..646

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

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: "santa claus office",
        type: FloorType.Lobby,
        holiday: "The Holidays",
        character: "artmajor",
Severity: Minor
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 55 mins to fix
packages/nucleus/src/data/floors.ts on lines 599..605

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

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 thresholdImage: Image = {
        width,
        height,
        format,
        channels,
Severity: Minor
Found in packages/doorman/src/image-operations/threshold-image.ts and 1 other location - About 55 mins to fix
packages/doorman/src/image-operations/mask-image.ts on lines 34..40

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

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: "Forever Frosty Bar",
        type: FloorType.Lobby,
        hidden: true,
        character: "artmajor",
Severity: Minor
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 55 mins to fix
packages/nucleus/src/data/floors.ts on lines 797..803

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

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: "Ice Cream Parlor",
        type: FloorType.Lobby,
        character: "artmajor",
        hidden: true,
Severity: Minor
Found in packages/nucleus/src/data/floors.ts and 1 other location - About 55 mins to fix
packages/nucleus/src/data/floors.ts on lines 656..662

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

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