engagementgamelab/CivicSeed

View on GitHub
client/code/data/data.skinsuits.js

Summary

Maintainability
F
5 days
Test Coverage

File data.skinsuits.js has 339 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Ideally, this is JSON, and is formatted as such
// But the browserify module bundled with socketstream
// does not currently support JSON, so we just
// manually attach it to module.exports

Severity: Minor
Found in client/code/data/data.skinsuits.js - About 4 hrs to fix

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

        "lion": {
          "id": "lion",
          "name": "Lion",
          "description": "You are Lion. Hear you roar.",
          "effect": "I wonder how this head would look on different bodies...",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "ninja": {
          "id": "ninja",
          "name": "Ninja",
          "description": "A shady ninja costume.",
          "effect": "",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "penguin": {
          "id": "penguin",
          "name": "Penguin",
          "description": "Hey, don’t you already have a tuxedo?",
          "effect": "",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "cone": {
          "id": "cone",
          "name": "Ice Cream Cone",
          "description": "You look delicious.",
          "effect": "Have you heard the legend of the Sprinkle-Saurus?",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "astronaut": {
          "id": "astronaut",
          "name": "Astronaut",
          "description": "You’re ready for the final frontier.",
          "effect": "You have global radar. All characters with resources are highlighted in the mini-map!",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "horse": {
          "id": "horse",
          "name": "Horse",
          "description": "You’re a horse!",
          "effect": "You walk a lot faster!",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "octopus": {
          "id": "octopus",
          "name": "Octopus",
          "description": "You’re an octopus, smartest of all cephalopods.",
          "effect": "Your paint radius goes up by three.",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257

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

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

        "dinosaur": {
          "id": "dinosaur",
          "name": "Dinosaur",
          "description": "You’re an awesome dinosaur. The ground shakes at your approach!",
          "effect": "",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "tuxedo": {
          "id": "tuxedo",
          "name": "Tuxedo",
          "description": "You are ready for a night out on Calliope!",
          "effect": "A top hat makes any outfit classier, right?",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 83..107
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "cactus": {
          "id": "cactus",
          "name": "Cactus",
          "description": "Your prickly personality hides a beautiful desert bloom.",
          "effect": "How does a cactus get ahead?",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 9 other locations - About 3 hrs to fix
    client/code/data/data.skinsuits.js on lines 33..57
    client/code/data/data.skinsuits.js on lines 58..82
    client/code/data/data.skinsuits.js on lines 108..132
    client/code/data/data.skinsuits.js on lines 133..157
    client/code/data/data.skinsuits.js on lines 158..182
    client/code/data/data.skinsuits.js on lines 183..207
    client/code/data/data.skinsuits.js on lines 208..232
    client/code/data/data.skinsuits.js on lines 233..257
    client/code/data/data.skinsuits.js on lines 258..282

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

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

        "hunter": {
          "id": "hunter",
          "name": "Forest Hunter",
          "description": "You stalk the forest like the lion ninja you are.",
          "effect": "You can teleport to the forest! Just chat FOREST (all caps)",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 4 other locations - About 50 mins to fix
    client/code/data/data.skinsuits.js on lines 295..306
    client/code/data/data.skinsuits.js on lines 307..318
    client/code/data/data.skinsuits.js on lines 319..330
    client/code/data/data.skinsuits.js on lines 331..342

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

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

        "sprinkle": {
          "id": "sprinkle",
          "name": "Sprinklesaurus Rex",
          "description": "A cold-blooded cone with extra sprinkles.",
          "effect": "You gain 10 paintbrush seeds every time you click “Seed it!” on a friend’s response.",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 4 other locations - About 50 mins to fix
    client/code/data/data.skinsuits.js on lines 283..294
    client/code/data/data.skinsuits.js on lines 295..306
    client/code/data/data.skinsuits.js on lines 307..318
    client/code/data/data.skinsuits.js on lines 319..330

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

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

        "rancher": {
          "id": "rancher",
          "name": "Ranch Ronin",
          "description": "The stealth cactus could be anywhere.",
          "effect": "You can teleport to the ranch! Just chat RANCH (all caps)",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 4 other locations - About 50 mins to fix
    client/code/data/data.skinsuits.js on lines 283..294
    client/code/data/data.skinsuits.js on lines 295..306
    client/code/data/data.skinsuits.js on lines 319..330
    client/code/data/data.skinsuits.js on lines 331..342

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

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

        "mayor": {
          "id": "mayor",
          "name": "Ninja Mayor",
          "description": "You’re the king or queen of town.",
          "effect": "You can teleport to Calliope Town Square! Just chat TOWN (all caps)",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 4 other locations - About 50 mins to fix
    client/code/data/data.skinsuits.js on lines 283..294
    client/code/data/data.skinsuits.js on lines 295..306
    client/code/data/data.skinsuits.js on lines 307..318
    client/code/data/data.skinsuits.js on lines 331..342

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

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

        "mariner": {
          "id": "mariner",
          "name": "Sub-Mariner",
          "description": "You are at home in aquatic environments.",
          "effect": "You can teleport to the port! Just chat PORT (all caps)",
    Severity: Major
    Found in client/code/data/data.skinsuits.js and 4 other locations - About 50 mins to fix
    client/code/data/data.skinsuits.js on lines 283..294
    client/code/data/data.skinsuits.js on lines 307..318
    client/code/data/data.skinsuits.js on lines 319..330
    client/code/data/data.skinsuits.js on lines 331..342

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status